summaryrefslogtreecommitdiff
path: root/libavcodec/smvjpegdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-22 18:23:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-22 20:24:50 +0200
commitdf3ee7b9a9564c1b6193f4540db6e72656296118 (patch)
tree184a53fae01ec456c500c4a9586590930668d37c /libavcodec/smvjpegdec.c
parent165bc9caa2424b7d61889892744de6ba59f73d3f (diff)
smvjpegdec: use av_pix_fmt_desc_get() avoid direct table access
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/smvjpegdec.c')
-rw-r--r--libavcodec/smvjpegdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/smvjpegdec.c b/libavcodec/smvjpegdec.c
index 4d20316773..9542ccc899 100644
--- a/libavcodec/smvjpegdec.c
+++ b/libavcodec/smvjpegdec.c
@@ -52,7 +52,7 @@ static inline void smv_img_pnt(uint8_t *dst_data[4], uint8_t *src_data[4],
enum PixelFormat pix_fmt, int width, int height,
int nlines)
{
- const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];
+ const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
int i, planes_nb = 0;
if (desc->flags & PIX_FMT_HWACCEL)