diff options
author | Clément Bœsch <u@pkh.me> | 2017-03-22 16:21:20 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2017-03-22 16:22:20 +0100 |
commit | af607b7e0787a8d3af418ed2a03c48669ba3397c (patch) | |
tree | 4f4b19cd569fdae6efa09b9088d321cf4c5995f7 /libavcodec/huffyuvdsp.c | |
parent | c7904af057239104774244954d1f5a5a7b2a2d04 (diff) | |
download | ffmpeg-af607b7e0787a8d3af418ed2a03c48669ba3397c.tar.gz |
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.
Diffstat (limited to 'libavcodec/huffyuvdsp.c')
-rw-r--r-- | libavcodec/huffyuvdsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/huffyuvdsp.c b/libavcodec/huffyuvdsp.c index e770923bb2..7b865fe40c 100644 --- a/libavcodec/huffyuvdsp.c +++ b/libavcodec/huffyuvdsp.c @@ -80,12 +80,12 @@ static void add_hfyu_left_pred_bgr32_c(uint8_t *dst, const uint8_t *src, left[A] = a; } -av_cold void ff_huffyuvdsp_init(HuffYUVDSPContext *c, AVCodecContext *avctx) +av_cold void ff_huffyuvdsp_init(HuffYUVDSPContext *c, enum AVPixelFormat pix_fmt) { c->add_int16 = add_int16_c; c->add_hfyu_median_pred_int16 = add_hfyu_median_pred_int16_c; c->add_hfyu_left_pred_bgr32 = add_hfyu_left_pred_bgr32_c; if (ARCH_X86) - ff_huffyuvdsp_init_x86(c, avctx); + ff_huffyuvdsp_init_x86(c, pix_fmt); } |