summaryrefslogtreecommitdiff
path: root/libavcodec/huffyuvdec.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-22 16:21:20 +0100
committerClément Bœsch <u@pkh.me>2017-03-22 16:22:20 +0100
commitaf607b7e0787a8d3af418ed2a03c48669ba3397c (patch)
tree4f4b19cd569fdae6efa09b9088d321cf4c5995f7 /libavcodec/huffyuvdec.c
parentc7904af057239104774244954d1f5a5a7b2a2d04 (diff)
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/huffyuvdec.c')
-rw-r--r--libavcodec/huffyuvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c
index c68eadd933..5572b9819f 100644
--- a/libavcodec/huffyuvdec.c
+++ b/libavcodec/huffyuvdec.c
@@ -297,7 +297,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
if (ret < 0)
return ret;
- ff_huffyuvdsp_init(&s->hdsp, avctx);
+ ff_huffyuvdsp_init(&s->hdsp, avctx->pix_fmt);
ff_llviddsp_init(&s->llviddsp);
memset(s->vlc, 0, 4 * sizeof(VLC));