From a067d449558ac4ff69b53c7e09fdd6396d6f7c0c Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 30 Aug 2020 14:06:11 +0200 Subject: avcodec/roqvideodec: Move transient GetByteContext to the stack This avoids keeping potentially dangling pointers in the context, beautifies the code (by replacing "&ri->gb" by gb for every access to the GetByteContext) and also highlights the GetByteContext's short-lived nature better. Reviewed-by: Paul B Mahol Signed-off-by: Andreas Rheinhardt --- libavcodec/roqvideo.h | 1 - 1 file changed, 1 deletion(-) (limited to 'libavcodec/roqvideo.h') diff --git a/libavcodec/roqvideo.h b/libavcodec/roqvideo.h index 3da6eaa991..f47b2c8e6f 100644 --- a/libavcodec/roqvideo.h +++ b/libavcodec/roqvideo.h @@ -52,7 +52,6 @@ typedef struct RoqContext { roq_cell cb2x2[256]; roq_qcell cb4x4[256]; - GetByteContext gb; int width, height; /* Encoder only data */ -- cgit v1.2.3