diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-29 00:54:09 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-29 00:54:09 +0000 |
commit | e95580e70a8c0102cc2a399dff25307211a9b7ca (patch) | |
tree | 3cd5309b299da854109c68b48d4a76bcee78eeb8 /libavformat/movenc.c | |
parent | c2acba13a450869ff749ad2c5077f3902810d204 (diff) | |
download | ffmpeg-streaming-e95580e70a8c0102cc2a399dff25307211a9b7ca.zip ffmpeg-streaming-e95580e70a8c0102cc2a399dff25307211a9b7ca.tar.gz |
this should be valid for audio too
Originally committed as revision 13517 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 5ded250..efbce4e 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -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; |