[FFmpeg-devel] [PATCH 16/47] avcodec/svq1enc: Remove write-only c_block_{width, height}

Andreas Rheinhardt ffmpegagent at gmail.com
Sun Jun 15 19:54:07 EEST 2025


From: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/svq1enc.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c
index e3061baff4..cdcf1de712 100644
--- a/libavcodec/svq1enc.c
+++ b/libavcodec/svq1enc.c
@@ -80,10 +80,6 @@ typedef struct SVQ1EncContext {
     int y_block_width;
     int y_block_height;
 
-    /* U & V plane (C planes) block dimensions */
-    int c_block_width;
-    int c_block_height;
-
     DECLARE_ALIGNED(16, int16_t, encoded_block_levels)[6][7][256];
 
     uint16_t *mb_type;
@@ -595,9 +591,6 @@ static av_cold int svq1_encode_init(AVCodecContext *avctx)
     s->y_block_width  = (s->frame_width  + 15) / 16;
     s->y_block_height = (s->frame_height + 15) / 16;
 
-    s->c_block_width  = (s->frame_width  / 4 + 15) / 16;
-    s->c_block_height = (s->frame_height / 4 + 15) / 16;
-
     s->avctx               = avctx;
     s->m.c.avctx           = avctx;
 
-- 
ffmpeg-codebot



More information about the ffmpeg-devel mailing list