From: "\"zhilizhao(赵志立)\"" <quinkblack@foxmail.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/movenc: sidx earliest_presentation_time is applied after editlist Date: Fri, 18 Mar 2022 11:06:50 +0800 Message-ID: <tencent_0068427D9EADAE3A39C181B5546BFE00C10A@qq.com> (raw) In-Reply-To: <tencent_1E40699A4C9F21AB6F4E84701C2D7E9AAB08@qq.com> Ping for review. The following is copied from ISO-14496-12 as reference: > earliest_presentation_time is the earliest presentation time of any content in the reference > stream in the first subsegment, in the timescale indicated in the timescale field; the earliest > presentation time is derived from media in access units, or parts of access units, that are not > omitted by an edit list (if any); > On Mar 5, 2022, at 1:33 AM, Zhao Zhili <quinkblack@foxmail.com> wrote: > > Fix #8334 > --- > Remove casual change due to clang-format plugin. > > libavformat/movenc.c | 3 ++- > tests/ref/fate/movenc | 10 +++++----- > 2 files changed, 7 insertions(+), 6 deletions(-) > > diff --git a/libavformat/movenc.c b/libavformat/movenc.c > index 4c868919ae..a2da80bc00 100644 > --- a/libavformat/movenc.c > +++ b/libavformat/movenc.c > @@ -4750,7 +4750,8 @@ static int mov_write_sidx_tag(AVIOContext *pb, > > if (track->entry) { > entries = 1; > - presentation_time = track->cluster[0].dts + track->cluster[0].cts; > + presentation_time = track->cluster[0].dts + track->cluster[0].cts - > + track->start_dts - track->start_cts; > duration = track->end_pts - > (track->cluster[0].dts + track->cluster[0].cts); > starts_with_SAP = track->cluster[0].flags & MOV_SYNC_SAMPLE; > diff --git a/tests/ref/fate/movenc b/tests/ref/fate/movenc > index 19e4e291b8..968a3d27f2 100644 > --- a/tests/ref/fate/movenc > +++ b/tests/ref/fate/movenc > @@ -101,28 +101,28 @@ write_data len 1223, time nopts, type header atom ftyp > 041ac8efc35a0d023c26d05eedb20403 1223 delay-moov-elst-signal-init > write_data len 1004, time -33333, type sync atom sidx > write_data len 996, time 966667, type sync atom sidx > -5a583d89318827d2569eecbeaa18c238 996 delay-moov-elst-signal-second-frag > +69c9025ffb10302c7b5c2ed9fde86c44 996 delay-moov-elst-signal-second-frag > write_data len 148, time nopts, type trailer atom - > write_data len 1223, time nopts, type header atom ftyp > 041ac8efc35a0d023c26d05eedb20403 1223 delay-moov-elst-signal-init-discont > write_data len 996, time 966667, type sync atom sidx > -5a583d89318827d2569eecbeaa18c238 996 delay-moov-elst-signal-second-frag-discont > +69c9025ffb10302c7b5c2ed9fde86c44 996 delay-moov-elst-signal-second-frag-discont > write_data len 110, time nopts, type trailer atom - > write_data len 1247, time nopts, type header atom ftyp > 80511a51d1ac9cde62337eed7176ae03 1247 delay-moov-elst-signal-init-discont-largets > write_data len 996, time 279621233333, type sync atom sidx > -dc695d65e8a0cdafee28acd8a5ccf81a 996 delay-moov-elst-signal-second-frag-discont-largets > +471fc64644a6bf4065c489fe4e04be7d 996 delay-moov-elst-signal-second-frag-discont-largets > write_data len 110, time nopts, type trailer atom - > write_data len 1223, time nopts, type header atom ftyp > write_data len 2572, time -333333, type sync atom sidx > write_data len 996, time 5166667, type sync atom sidx > write_data len 148, time nopts, type trailer atom - > -d37a7eda807912b9ed05ccfe003a9e4f 4939 vfr > +5c873f6e37d5af09e3c6329cf94cd6ca 4939 vfr > write_data len 1223, time nopts, type header atom ftyp > write_data len 2572, time -333333, type sync atom sidx > write_data len 996, time 5166667, type sync atom sidx > write_data len 148, time nopts, type trailer atom - > -d37a7eda807912b9ed05ccfe003a9e4f 4939 vfr-noduration > +5c873f6e37d5af09e3c6329cf94cd6ca 4939 vfr-noduration > write_data len 1231, time nopts, type header atom ftyp > write_data len 1500, time -333333, type sync atom moof > write_data len 1500, time nopts, type unknown atom - > -- > 2.31.1 > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2022-03-18 3:07 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <20220304172642.94892-1-quinkblack@foxmail.com> 2022-03-04 17:26 ` [FFmpeg-devel] [PATCH " Zhao Zhili 2022-03-04 17:33 ` [FFmpeg-devel] [PATCH v2 " Zhao Zhili 2022-03-18 3:06 ` "zhilizhao(赵志立)" [this message] 2022-03-29 4:50 ` [FFmpeg-devel] [PATCH v3 1/2] avformat/mov: log the right variable Zhao Zhili [not found] ` <20220329045053.35358-1-quinkblack@foxmail.com> 2022-03-29 4:50 ` [FFmpeg-devel] [PATCH v3 2/2] avformat/movenc: sidx earliest_presentation_time is applied after editlist Zhao Zhili 2022-04-28 11:21 ` "zhilizhao(赵志立)"
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=tencent_0068427D9EADAE3A39C181B5546BFE00C10A@qq.com \ --to=quinkblack@foxmail.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git