aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-02-16 18:19:28 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-02-16 18:19:28 +0000
commit298d2fd304becb82c106a5938b95e5d29cf68c37 (patch)
treeaa2ad318c15a218c3ce587175c26d5861a07c5e4
parented7694d8cf4633da444237f4df7efc48936419d2 (diff)
downloadffmpeg-298d2fd304becb82c106a5938b95e5d29cf68c37.tar.gz
Don't return 0 if buffer setup failed. That signals the RTSP demuxer that
the packet was filled in, leading to virtually random behaviour in the decoder later on. Instead, return a negative value. Originally committed as revision 21851 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rtp_asf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtp_asf.c b/libavformat/rtp_asf.c
index d44ff5a67f..2b05b3e6d9 100644
--- a/libavformat/rtp_asf.c
+++ b/libavformat/rtp_asf.c
@@ -197,7 +197,7 @@ static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf,
}
if (!len_off && !asf->pktbuf &&
!(res = url_open_dyn_packet_buf(&asf->pktbuf, rt->asf_ctx->packet_size)))
- return res;
+ return AVERROR(EIO);
if (!asf->pktbuf)
return AVERROR(EIO);