[FFmpeg-cvslog] r11913 - trunk/libavformat/mov.c

bcoudurier subversion
Mon Feb 11 23:37:44 CET 2008


Author: bcoudurier
Date: Mon Feb 11 23:37:44 2008
New Revision: 11913

Log:
return error when dv audio extraction fails

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Mon Feb 11 23:37:44 2008
@@ -1553,7 +1553,9 @@ static int mov_read_packet(AVFormatConte
     if (mov->dv_demux && sc->dv_audio_container) {
         dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size);
         av_free(pkt->data);
-        dv_get_packet(mov->dv_demux, pkt);
+        pkt->size = 0;
+        if (dv_get_packet(mov->dv_demux, pkt) < 0)
+            return -1;
     }
 #endif
     pkt->stream_index = sc->ffindex;




More information about the ffmpeg-cvslog mailing list