mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fix edts for tracks without b frames
Originally committed as revision 5282 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f1f7807abd
commit
a336965e70
@ -946,7 +946,10 @@ 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, av_rescale_rnd(track->trackDuration, globalTimescale, track->timescale, AV_ROUND_UP)); /* duration ... doesn't seem to effect psp */
|
||||||
|
|
||||||
put_be32(pb, track->sampleDuration);
|
if (track->hasBframes)
|
||||||
|
put_be32(pb, track->sampleDuration); /* first pts is 1 */
|
||||||
|
else
|
||||||
|
put_be32(pb, 0);
|
||||||
put_be32(pb, 0x00010000);
|
put_be32(pb, 0x00010000);
|
||||||
return 0x24;
|
return 0x24;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user