[FFmpeg-cvslog] avcodec/speedhqdec: Remove write-only AVCodecContext*

Andreas Rheinhardt git at videolan.org
Fri Oct 21 22:16:35 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Oct 18 15:39:01 2022 +0200| [ff3c4705f61dd03bf9dd0ae5d9f6c83075b25814] | committer: Andreas Rheinhardt

avcodec/speedhqdec: Remove write-only AVCodecContext*

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

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

 libavcodec/speedhqdec.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavcodec/speedhqdec.c b/libavcodec/speedhqdec.c
index 3dea1c3605..acca437bd5 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;
@@ -576,8 +575,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;



More information about the ffmpeg-cvslog mailing list