Commit df3ee7b9 authored by Michael Niedermayer's avatar Michael Niedermayer

smvjpegdec: use av_pix_fmt_desc_get() avoid direct table access

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 165bc9ca
...@@ -52,7 +52,7 @@ static inline void smv_img_pnt(uint8_t *dst_data[4], uint8_t *src_data[4], ...@@ -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, enum PixelFormat pix_fmt, int width, int height,
int nlines) 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; int i, planes_nb = 0;
if (desc->flags & PIX_FMT_HWACCEL) if (desc->flags & PIX_FMT_HWACCEL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment