On 8/25/2019 1:59 PM, Paul B Mahol wrote: > On Sun, Aug 25, 2019 at 6:53 PM Michael Niedermayer <mich...@niedermayer.cc> > wrote: > >> On Fri, Aug 23, 2019 at 06:01:32PM +0200, Paul B Mahol wrote: >>> Here is patch. >>> >>> On Thu, Aug 22, 2019 at 6:18 PM Paul B Mahol <one...@gmail.com> wrote: >>> >>>> Hi, >>>> >>>> patch attached. >>>> >> >>> mov.c | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >>> 1f2e91bc38bd8e3f96e61076d79dac73e7d30390 >> 0001-avformat-mov-improve-timecode-calculation.patch >>> From 881fcc40aad27d646a9b5866569ed8ca0e78777b Mon Sep 17 00:00:00 2001 >>> From: Paul B Mahol <one...@gmail.com> >>> Date: Thu, 22 Aug 2019 18:14:15 +0200 >>> Subject: [PATCH] avformat/mov: improve timecode calculation >>> >>> Fixes timecode calculation for NTSC frame rates. >>> Fixes ticket #5978. >>> --- >>> libavformat/mov.c | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/libavformat/mov.c b/libavformat/mov.c >>> index 24de5429d1..8fffc51fcb 100644 >>> --- a/libavformat/mov.c >>> +++ b/libavformat/mov.c >>> @@ -2303,8 +2303,8 @@ static int mov_parse_stsd_data(MOVContext *c, >> AVIOContext *pb, >>> int val; >>> val = AV_RB32(st->codecpar->extradata + 4); >>> tmcd_ctx->tmcd_flags = val; >>> - st->avg_frame_rate.num = st->codecpar->extradata[16]; /* >> number of frame */ >>> - st->avg_frame_rate.den = 1; >>> + st->avg_frame_rate.num = AV_RB32(st->codecpar->extradata + >> 8); /* timescale */ >>> + st->avg_frame_rate.den = AV_RB32(st->codecpar->extradata + >> 12); /* frameDuration */ >>> #if FF_API_LAVF_AVCTX >>> FF_DISABLE_DEPRECATION_WARNINGS >>> st->codec->time_base = av_inv_q(st->avg_frame_rate); >> >> breaks fate >> > > Obviously that test is broken.
Then make sure to update the test ref file in this same patch before pushing. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".