diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-22 18:23:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-22 20:24:50 +0200 |
commit | df3ee7b9a9564c1b6193f4540db6e72656296118 (patch) | |
tree | 184a53fae01ec456c500c4a9586590930668d37c /libavcodec/smvjpegdec.c | |
parent | 165bc9caa2424b7d61889892744de6ba59f73d3f (diff) | |
download | ffmpeg-df3ee7b9a9564c1b6193f4540db6e72656296118.tar.gz |
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.c | 2 |
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) |