[FFmpeg-cvslog] avcodec/mpeg12dec: Set save_chroma_format also for VCR2

Andreas Rheinhardt git at videolan.org
Wed May 21 04:27:22 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat May 17 00:04:58 2025 +0200| [56497671dd6b3348d063ba199930fa5d0e6fce81] | committer: Andreas Rheinhardt

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 <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=56497671dd6b3348d063ba199930fa5d0e6fce81
---

 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;
 }
 



More information about the ffmpeg-cvslog mailing list