1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/svq1enc: Set MpegEncContext.avctx only once

It is already set during init.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-06-13 00:37:27 +02:00
parent 4b7f1595cc
commit 83ddf99267

View File

@ -320,7 +320,6 @@ static int svq1_encode_plane(SVQ1EncContext *s, int plane,
block_height = (height + 15) / 16; block_height = (height + 15) / 16;
if (s->pict_type == AV_PICTURE_TYPE_P) { if (s->pict_type == AV_PICTURE_TYPE_P) {
s2->avctx = s->avctx;
s2->last_pic.data[0] = ref_plane; s2->last_pic.data[0] = ref_plane;
s2->linesize = s2->linesize =
s2->last_pic.linesize[0] = s2->last_pic.linesize[0] =