smvjpegdec: use av_pix_fmt_desc_get() avoid direct table access
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 22 May 2013 16:23:57 +0000 (18:23 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 22 May 2013 18:24:50 +0000 (20:24 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/smvjpegdec.c

index 4d20316..9542ccc 100644 (file)
@@ -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)