[FFmpeg-cvslog] r24281 - trunk/libavformat/avidec.c

jai_menon subversion
Sat Jul 17 07:40:18 CEST 2010


Author: jai_menon
Date: Sat Jul 17 07:40:18 2010
New Revision: 24281

Log:
avidec : Free packet if dv_produce_packet fails.

Modified:
   trunk/libavformat/avidec.c

Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	Sat Jul 17 07:26:30 2010	(r24280)
+++ trunk/libavformat/avidec.c	Sat Jul 17 07:40:18 2010	(r24281)
@@ -808,6 +808,8 @@ resync:
                                     pkt->data, pkt->size);
             pkt->destruct = dstr;
             pkt->flags |= AV_PKT_FLAG_KEY;
+            if (size < 0)
+                av_free_packet(pkt);
         } else {
             /* XXX: How to handle B-frames in AVI? */
             pkt->dts = ast->frame_offset;



More information about the ffmpeg-cvslog mailing list