diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-08-11 09:27:40 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-08-11 09:27:40 +0000 |
commit | 7228914047b378698fe554fd55ac210922c1bb6d (patch) | |
tree | 433ce331fbf8466229deca88786766a264ef6da3 /libavformat/movenc.c | |
parent | 6b53e173cfd883b8571caefe2761a0360a8ec817 (diff) | |
download | ffmpeg-7228914047b378698fe554fd55ac210922c1bb6d.tar.gz |
set elst start time to first pts
Originally committed as revision 5981 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 1a4fd63653..de6c76003d 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -926,10 +926,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 */ - if (track->hasBframes) - put_be32(pb, track->sampleDuration); /* first pts is 1 */ - else - put_be32(pb, 0); + put_be32(pb, track->cluster[0].cts); /* first pts is cts since dts is 0 */ put_be32(pb, 0x00010000); return 0x24; } |