summaryrefslogtreecommitdiff
path: root/libavformat/rtspdec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-01-28 03:12:22 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-01-30 03:40:59 +0100
commitb351baa070beede5d110974544782ac80e21bc90 (patch)
treefb0d13bfb7cdca18103ed4f1725a42b8ec9eccb0 /libavformat/rtspdec.c
parentd0eb91ad0451cdb6c062b2d4760bfa7f8bb4db6b (diff)
rtsp: make ff_sdp_parse return value forwarded
the sdp demuxer did not forward it at all while the rtsp demuxer assumed a single kind of error (cherry picked from commit f81c7ac70a7e5e82b0ab0839faf8d22d555efb9d)
Diffstat (limited to 'libavformat/rtspdec.c')
-rw-r--r--libavformat/rtspdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c
index 55996e3631..f95f7c3851 100644
--- a/libavformat/rtspdec.c
+++ b/libavformat/rtspdec.c
@@ -136,7 +136,7 @@ int ff_rtsp_setup_input_streams(AVFormatContext *s, RTSPMessageHeader *reply)
ret = ff_sdp_parse(s, (const char *)content);
av_freep(&content);
if (ret < 0)
- return AVERROR_INVALIDDATA;
+ return ret;
return 0;
}