mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
libavformat/mov: restore use of mfra time as dts
This was inadvertantly removed in 4a9d32baca Reviewed-by: Gyan Doshi <ffmpeg@gyani.pro>
This commit is contained in:
parent
49a32fa45c
commit
99360990a9
@ -4805,6 +4805,11 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
pts = frag_stream_info->first_tfra_pts;
|
||||
av_log(c->fc, AV_LOG_DEBUG, "found mfra time %"PRId64
|
||||
", using it for pts\n", pts);
|
||||
} else if (frag_stream_info->first_tfra_pts != AV_NOPTS_VALUE &&
|
||||
c->use_mfra_for == FF_MOV_FLAG_MFRA_DTS) {
|
||||
dts = frag_stream_info->first_tfra_pts;
|
||||
av_log(c->fc, AV_LOG_DEBUG, "found mfra time %"PRId64
|
||||
", using it for dts\n", pts);
|
||||
} else if (frag_stream_info->sidx_pts != AV_NOPTS_VALUE) {
|
||||
// FIXME: sidx earliest_presentation_time is *PTS*, s.b.
|
||||
// pts = frag_stream_info->sidx_pts;
|
||||
|
Loading…
x
Reference in New Issue
Block a user