mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
smvjpegdec: use av_pix_fmt_desc_get() avoid direct table access
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
165bc9caa2
commit
df3ee7b9a9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user