diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-03-11 18:21:28 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-03-11 18:21:28 +0000 |
commit | c6e722e5e91c8efbd1af44cb3b8bc0bdac75e591 (patch) | |
tree | 6cf17f76754141c84ae3f893cbd7d870f403758b /libavformat/movenc.c | |
parent | c1b8e6d8a871fed24cba37faa99e1a0246e078a8 (diff) | |
download | ffmpeg-c6e722e5e91c8efbd1af44cb3b8bc0bdac75e591.tar.gz |
create edts atom when muxing B frames, needed to compute cts
Originally committed as revision 5151 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 71deec7c25..63d9853474 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -929,7 +929,7 @@ static int mov_write_edts_tag(ByteIOContext *pb, MOVTrack *track) put_be32(pb, av_rescale_rnd(track->trackDuration, globalTimescale, track->timescale, AV_ROUND_UP)); /* duration ... doesn't seem to effect psp */ - put_be32(pb, 0x0); + put_be32(pb, track->sampleDuration); put_be32(pb, 0x00010000); return 0x24; } @@ -959,7 +959,7 @@ static int mov_write_trak_tag(ByteIOContext *pb, MOVTrack* track) put_be32(pb, 0); /* size */ put_tag(pb, "trak"); mov_write_tkhd_tag(pb, track); - if (track->mode == MODE_PSP) + if (track->mode == MODE_PSP || track->hasBframes) mov_write_edts_tag(pb, track); // PSP Movies require edts box mov_write_mdia_tag(pb, track); if (track->mode == MODE_PSP) |