PR #26150 opened by Baptiste Coudurier (bcoudurier) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26150 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26150.patch
The FFV1 field order was compared to a boolean, so FieldDominance was always 2. Write 1 when the top field is displayed first (AV_FIELD_TT/AV_FIELD_BT), matching mxfdec. No ref changes: the FATE FFV1 MXF test is progressive. 🤖 Generated with [Claude Code](https://claude.com/claude-code) From 1282a6caec7b405e2aad58ff522c511edb6f5c56 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier <[email protected]> Date: Fri, 13 Nov 2026 16:25:40 -0800 Subject: [PATCH] avformat/mxfenc: fix FFV1 field dominance The field order was compared to a boolean, always writing 2. Use 1 when the top field is displayed first. Signed-off-by: Baptiste Coudurier <[email protected]> --- libavformat/mxfenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 867a4abd4d2..9505a3f00b9 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -2697,7 +2697,8 @@ static int mxf_parse_ffv1_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt) if (st->codecpar->field_order > AV_FIELD_PROGRESSIVE) { sc->interlaced = 1; - sc->field_dominance = st->codecpar->field_order == (st->codecpar->field_order == AV_FIELD_TT || st->codecpar->field_order == AV_FIELD_TB) ? 1 : 2; + sc->field_dominance = (st->codecpar->field_order == AV_FIELD_TT || + st->codecpar->field_order == AV_FIELD_BT) ? 1 : 2; } sc->aspect_ratio.num = st->codecpar->width * st->codecpar->sample_aspect_ratio.num; sc->aspect_ratio.den = st->codecpar->height * st->codecpar->sample_aspect_ratio.den; -- 2.54.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
