[FFmpeg-devel] [PATCH 9/9] avcodec/speedhqdec: Remove write-only AVCodecContext*

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Tue Oct 18 16:41:36 EEST 2022


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

diff --git a/libavcodec/speedhqdec.c b/libavcodec/speedhqdec.c
index 4c3df2e93d..8771808f8b 100644
--- a/libavcodec/speedhqdec.c
+++ b/libavcodec/speedhqdec.c
@@ -51,7 +51,6 @@
 #define ALPHA_VLC_BITS 5
 
 typedef struct SHQContext {
-    AVCodecContext *avctx;
     BlockDSPContext bdsp;
     IDCTDSPContext idsp;
     ScanTable intra_scantable;
@@ -574,8 +573,6 @@ static av_cold int speedhq_decode_init(AVCodecContext *avctx)
     static AVOnce init_once = AV_ONCE_INIT;
     SHQContext * const s = avctx->priv_data;
 
-    s->avctx = avctx;
-
     ret = ff_thread_once(&init_once, speedhq_static_init);
     if (ret)
         return AVERROR_UNKNOWN;
-- 
2.34.1



More information about the ffmpeg-devel mailing list