summaryrefslogtreecommitdiff
path: root/libavcodec/iff.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-10-12 15:13:42 +0000
committerPaul B Mahol <onemda@gmail.com>2012-10-12 15:31:42 +0000
commita51540d81167547f1c7c2b8f545c246711611071 (patch)
treeed001a8c92dbf84c5dcaf0f434cb9ccb4519a27e /libavcodec/iff.c
parent27ccc82e1bb1b97a85e5fb33b92082267078b4d1 (diff)
downloadffmpeg-a51540d81167547f1c7c2b8f545c246711611071.tar.gz
lavc: do not use av_pix_fmt_descriptors directly
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/iff.c')
-rw-r--r--libavcodec/iff.c3
1 files changed, 2 insertions, 1 deletions
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]];