[FFmpeg-cvslog] r15131 - trunk/libavformat/movenc.c

bcoudurier subversion
Sun Aug 31 22:20:12 CEST 2008


Author: bcoudurier
Date: Sun Aug 31 22:20:12 2008
New Revision: 15131

Log:
copy whole frame in vosData for dnxhd, this code will be used for other codecs too

Modified:
   trunk/libavformat/movenc.c

Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	(original)
+++ trunk/libavformat/movenc.c	Sun Aug 31 22:20:12 2008
@@ -1613,12 +1613,10 @@ static int mov_write_packet(AVFormatCont
         assert(pkt->size);
         size = pkt->size;
     } else if (enc->codec_id == CODEC_ID_DNXHD && !trk->vosLen) {
-        /* copy frame header to create needed atoms */
-        if (size < 640)
-            return -1;
-        trk->vosLen = 640;
-        trk->vosData = av_malloc(trk->vosLen);
-        memcpy(trk->vosData, pkt->data, 640);
+        /* copy frame to create needed atoms */
+        trk->vosLen = size;
+        trk->vosData = av_malloc(size);
+        memcpy(trk->vosData, pkt->data, size);
     }
 
     if (!(trk->entry % MOV_INDEX_CLUSTER_SIZE)) {




More information about the ffmpeg-cvslog mailing list