diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-01 22:30:21 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-09 09:15:40 +0200 |
commit | 2415f5158bfbce1c974554e29772a9df76940ad9 (patch) | |
tree | c7fa194aab49f37af023fee6ec5e5bb802a88bb1 /libavcodec/huffyuv.h | |
parent | bfdf3470f79571e33d0e02ced0ed9d3b45125a49 (diff) | |
download | ffmpeg-2415f5158bfbce1c974554e29772a9df76940ad9.tar.gz |
avcodec/huffyuv: Use AVCodecContext.(width|height) directly
These parameters are easily accessible whereever they
are accessed, so using copies from HYuvContext is
unnecessary.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/huffyuv.h')
-rw-r--r-- | libavcodec/huffyuv.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/huffyuv.h b/libavcodec/huffyuv.h index 83309d4b11..92e390ad78 100644 --- a/libavcodec/huffyuv.h +++ b/libavcodec/huffyuv.h @@ -72,7 +72,6 @@ typedef struct HYuvContext { int yuv; int chroma_h_shift; int chroma_v_shift; - int width, height; int flags; int context; int picture_number; @@ -96,7 +95,7 @@ typedef struct HYuvContext { void ff_huffyuv_common_init(AVCodecContext *s); void ff_huffyuv_common_end(HYuvContext *s); -int ff_huffyuv_alloc_temp(HYuvContext *s); +int ff_huffyuv_alloc_temp(HYuvContext *s, int width); int ff_huffyuv_generate_bits_table(uint32_t *dst, const uint8_t *len_table, int n); #endif /* AVCODEC_HUFFYUV_H */ |