[FFmpeg-cvslog] avcodec/svq1enc: Set MpegEncContext.avctx only once

Andreas Rheinhardt git at videolan.org
Sat Jun 21 23:20:36 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Jun 13 00:37:27 2025 +0200| [83ddf99267c03e49140b2468fc4635b36a7dcf64] | committer: Andreas Rheinhardt

avcodec/svq1enc: Set MpegEncContext.avctx only once

It is already set during init.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavcodec/svq1enc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c
index cdcf1de712..0caed73097 100644
--- a/libavcodec/svq1enc.c
+++ b/libavcodec/svq1enc.c
@@ -320,7 +320,6 @@ static int svq1_encode_plane(SVQ1EncContext *s, int plane,
     block_height = (height + 15) / 16;
 
     if (s->pict_type == AV_PICTURE_TYPE_P) {
-        s2->avctx                         = s->avctx;
         s2->last_pic.data[0]        = ref_plane;
         s2->linesize                      =
         s2->last_pic.linesize[0]    =



More information about the ffmpeg-cvslog mailing list