From 1b5208930d943741757a7825a595fe21543fdd99 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 17 May 2025 00:04:58 +0200 Subject: [PATCH 2/5] avcodec/mpeg12dec: Set save_chroma_format also for VCR2 Otherwise the MpegEncContext would be unnecessarily reinitialized once (this does not affect the output for an intra-only variant like VCR2) in mpeg_decode_postinit(). Signed-off-by: Andreas Rheinhardt --- libavcodec/mpeg12dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index fc41c548e2..e70261fd14 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -1866,6 +1866,7 @@ static int vcr2_init_sequence(AVCodecContext *avctx) s1->save_width = s->width; s1->save_height = s->height; s1->save_progressive_seq = s->progressive_sequence; + s1->save_chroma_format = s->chroma_format; return 0; } -- 2.45.2