mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-29 10:43:15 +00: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,
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user