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

rbultje subversion
Tue Feb 16 20:26:49 CET 2010


Author: rbultje
Date: Tue Feb 16 20:26:49 2010
New Revision: 21853

Log:
Fix two problems (no idea how this ever worked):
- the return value of url_open_dyn_*buf() is 0 on success, so using
   if (!(res = url_open_dyn_*buf())) return res; is not going to work
- url_open_dyn_packet_buf actually writes the max_packet_size before
   each piece of data. Feeding this to the ASF demuxer will never work.
   Therefore, use url_open_dyn_buf() instead.

Modified:
   trunk/libavformat/rtp_asf.c

Modified: trunk/libavformat/rtp_asf.c
==============================================================================
--- trunk/libavformat/rtp_asf.c	Tue Feb 16 19:25:05 2010	(r21852)
+++ trunk/libavformat/rtp_asf.c	Tue Feb 16 20:26:49 2010	(r21853)
@@ -196,7 +196,7 @@ static int asfrtp_parse_packet(AVFormatC
                 av_free(p);
             }
             if (!len_off && !asf->pktbuf &&
-                !(res = url_open_dyn_packet_buf(&asf->pktbuf, rt->asf_ctx->packet_size)))
+                (res = url_open_dyn_buf(&asf->pktbuf)) < 0)
                 return res;
             if (!asf->pktbuf)
                 return AVERROR(EIO);



More information about the ffmpeg-cvslog mailing list