mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-03 13:32:10 +00:00
set elst start time to first pts
Originally committed as revision 5981 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6b53e173cf
commit
7228914047
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user