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

bcoudurier subversion
Thu May 29 02:54:09 CEST 2008


Author: bcoudurier
Date: Thu May 29 02:54:09 2008
New Revision: 13517

Log:
this should be valid for audio too

Modified:
   trunk/libavformat/movenc.c

Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	(original)
+++ trunk/libavformat/movenc.c	Thu May 29 02:54:09 2008
@@ -1607,14 +1607,12 @@ static int mov_write_packet(AVFormatCont
     trk->cluster[trk->entry].dts = pkt->dts;
     trk->trackDuration = pkt->dts - trk->cluster[0].dts + pkt->duration;
 
-    if(enc->codec_type == CODEC_TYPE_VIDEO) {
         if (pkt->dts != pkt->pts)
             trk->hasBframes = 1;
         trk->cluster[trk->entry].cts = pkt->pts - pkt->dts;
         trk->cluster[trk->entry].key_frame = !!(pkt->flags & PKT_FLAG_KEY);
         if(trk->cluster[trk->entry].key_frame)
             trk->hasKeyframes++;
-    }
     trk->entry++;
     trk->sampleCount += samplesInChunk;
     mov->mdat_size += size;




More information about the ffmpeg-cvslog mailing list