[FFmpeg-cvslog] r21851 - trunk/libavformat/rtp_asf.c

rbultje subversion
Tue Feb 16 19:19:28 CET 2010


Author: rbultje
Date: Tue Feb 16 19:19:28 2010
New Revision: 21851

Log:
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.

Modified:
   trunk/libavformat/rtp_asf.c

Modified: trunk/libavformat/rtp_asf.c
==============================================================================
--- trunk/libavformat/rtp_asf.c	Tue Feb 16 17:32:25 2010	(r21850)
+++ trunk/libavformat/rtp_asf.c	Tue Feb 16 19:19:28 2010	(r21851)
@@ -197,7 +197,7 @@ static int asfrtp_parse_packet(AVFormatC
             }
             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);
 



More information about the ffmpeg-cvslog mailing list