From af607b7e0787a8d3af418ed2a03c48669ba3397c Mon Sep 17 00:00:00 2001 From: Clément Bœsch Date: Wed, 22 Mar 2017 16:21:20 +0100 Subject: lavc/huffyuvdsp: only transmit the pix_fmt instead of the whole avctx Only the pixel format is required in that init function. This will also simplify the incoming merge. --- libavcodec/huffyuvdsp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/huffyuvdsp.h') diff --git a/libavcodec/huffyuvdsp.h b/libavcodec/huffyuvdsp.h index f9af09e602..e5f5b05466 100644 --- a/libavcodec/huffyuvdsp.h +++ b/libavcodec/huffyuvdsp.h @@ -20,8 +20,8 @@ #define AVCODEC_HUFFYUVDSP_H #include +#include "libavutil/pixfmt.h" #include "config.h" -#include "avcodec.h" #if HAVE_BIGENDIAN #define B 3 @@ -46,7 +46,7 @@ typedef struct HuffYUVDSPContext { intptr_t w, uint8_t *left); } HuffYUVDSPContext; -void ff_huffyuvdsp_init(HuffYUVDSPContext *c, AVCodecContext *avctx); -void ff_huffyuvdsp_init_x86(HuffYUVDSPContext *c, AVCodecContext *avctx); +void ff_huffyuvdsp_init(HuffYUVDSPContext *c, enum AVPixelFormat pix_fmt); +void ff_huffyuvdsp_init_x86(HuffYUVDSPContext *c, enum AVPixelFormat pix_fmt); #endif /* AVCODEC_HUFFYUVDSP_H */ -- cgit v1.2.3