Commit 1a2b3c4c authored by bcoudurier's avatar bcoudurier

fix edts for tracks without b frames


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5282 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9c589641
......@@ -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, track->sampleDuration);
if (track->hasBframes)
put_be32(pb, track->sampleDuration); /* first pts is 1 */
else
put_be32(pb, 0);
put_be32(pb, 0x00010000);
return 0x24;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment