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

bcoudurier subversion
Mon Feb 11 15:10:30 CET 2008


Author: bcoudurier
Date: Mon Feb 11 15:10:29 2008
New Revision: 11904

Log:
more correct and simpler

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Mon Feb 11 15:10:29 2008
@@ -1539,20 +1539,13 @@ static int mov_read_packet(AVFormatConte
                sc->ffindex, sample->pos);
         return -1;
     }
-#ifdef CONFIG_DV_DEMUXER
-    if (sc->dv_audio_container) {
-        dv_get_packet(mov->dv_demux, pkt);
-        dprintf(s, "dv audio pkt size %d\n", pkt->size);
-    } else {
-#endif
         av_get_packet(s->pb, pkt, sample->size);
 #ifdef CONFIG_DV_DEMUXER
-        if (mov->dv_demux) {
-            void *pkt_destruct_func = pkt->destruct;
+        if (mov->dv_demux && sc->dv_audio_container) {
             dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size);
-            pkt->destruct = pkt_destruct_func;
+            av_free(pkt->data);
+            dv_get_packet(mov->dv_demux, pkt);
         }
-    }
 #endif
     pkt->stream_index = sc->ffindex;
     pkt->dts = sample->timestamp;




More information about the ffmpeg-cvslog mailing list