This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 78efc17cc5 avformat/movenc: preserve timecode flags when copying tmcd
tracks
78efc17cc5 is described below
commit 78efc17cc5b6cfa62bea5bca39a4c4b5dea731d7
Author: Théo Valette <[email protected]>
AuthorDate: Tue Aug 11 14:35:20 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Thu Aug 27 14:08:13 2026 +0000
avformat/movenc: preserve timecode flags when copying tmcd tracks
The MOV demuxer retains tmcd timecode flags in codec extradata, but copied
tracks never initialize MOVTrack.timecode_flags. mov_write_tmcd_tag()
therefore writes zero when reconstructing the sample description, causing
unchanged frame counters to be interpreted as non-drop-frame.
Initialize the complete flags field from sample-description extradata for
copied tmcd tracks. fate-copy-trac236 covers three drop-frame tmcd tracks.
Fixes issue #20841.
Reported-by: unsword01 <[email protected]>
Signed-off-by: Théo Valette <[email protected]>
---
libavformat/movenc.c | 3 +++
tests/ref/fate/copy-trac236 | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index ce6776e4d3..14504d0947 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -8689,6 +8689,9 @@ static int mov_init(AVFormatContext *s)
}
} else if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA) {
track->timescale = st->time_base.den;
+ if (track->tag == MKTAG('t','m','c','d') &&
+ st->codecpar->extradata_size >= 8)
+ track->timecode_flags = AV_RB32(st->codecpar->extradata + 4);
} else {
track->timescale = mov->movie_timescale;
}
diff --git a/tests/ref/fate/copy-trac236 b/tests/ref/fate/copy-trac236
index 016492cf23..187d598900 100644
--- a/tests/ref/fate/copy-trac236
+++ b/tests/ref/fate/copy-trac236
@@ -1,4 +1,4 @@
-1683aff9357630012ded47d7e45d2c8a *tests/data/fate/copy-trac236.mov
+1aba24bd0b58133d3c59bccde9daad08 *tests/data/fate/copy-trac236.mov
630918 tests/data/fate/copy-trac236.mov
#tb 0: 100/2997
#media_type 0: video
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]