Browse Source

this should be valid for audio too

Originally committed as revision 13517 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Baptiste Coudurier 17 years ago
parent
commit
e95580e70a
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      libavformat/movenc.c

+ 0
- 2
libavformat/movenc.c View File

@@ -1607,14 +1607,12 @@ static int mov_write_packet(AVFormatContext *s, AVPacket *pkt)
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;


Loading…
Cancel
Save