From a51540d81167547f1c7c2b8f545c246711611071 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 12 Oct 2012 15:13:42 +0000 Subject: lavc: do not use av_pix_fmt_descriptors directly Signed-off-by: Paul B Mahol --- libavcodec/iff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/iff.c') diff --git a/libavcodec/iff.c b/libavcodec/iff.c index 70f548bf67..3940a0cdae 100644 --- a/libavcodec/iff.c +++ b/libavcodec/iff.c @@ -519,7 +519,8 @@ static int decode_frame_ilbm(AVCodecContext *avctx, } } } else if (avctx->codec_tag == MKTAG('D','E','E','P')) { - int raw_width = avctx->width * (av_get_bits_per_pixel(&av_pix_fmt_descriptors[avctx->pix_fmt]) >> 3); + const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt); + int raw_width = avctx->width * (av_get_bits_per_pixel(desc) >> 3); int x; for(y = 0; y < avctx->height && buf < buf_end; y++ ) { uint8_t *row = &s->frame.data[0][y * s->frame.linesize[0]]; -- cgit v1.2.3