diff mbox series

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

Message ID AS8P250MB0744B6C529B45B75D7F175528F289@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit ff3c4705f61dd03bf9dd0ae5d9f6c83075b25814
Headers show
Series [FFmpeg-devel,1/8] avformat/mj2kdec: Remove always-true #if CONFIG_MJPEG_2000_DEMUXER | expand

Commit Message

Andreas Rheinhardt Oct. 18, 2022, 1:41 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/speedhqdec.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

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;