[FFmpeg-devel] [PATCH] libavformat/mov: restore use of mfra time as dts
Gyan Doshi
ffmpeg at gyani.pro
Thu Apr 9 08:26:48 EEST 2020
On 06-04-2020 11:12 pm, John Stebbins wrote:
> This was inadvertantly removed in 4a9d32baca
> ---
> libavformat/mov.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/libavformat/mov.c b/libavformat/mov.c
> index 16a40debc7..eee98fb69c 100644
> --- a/libavformat/mov.c
> +++ b/libavformat/mov.c
> @@ -4813,6 +4813,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;
LGTM.
Gyan
More information about the ffmpeg-devel
mailing list