Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-01 23:30:21 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-09 10:15:40 +0300
commit2415f5158bfbce1c974554e29772a9df76940ad9 (patch)
treec7fa194aab49f37af023fee6ec5e5bb802a88bb1 /libavcodec/huffyuv.h
parentbfdf3470f79571e33d0e02ced0ed9d3b45125a49 (diff)
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.h3
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 */