Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
unsigned i, nb_planes = 0;
int pixelstep[MAX_PLANES] = { 0 };
unsigned i, nb_planes = 0;
int pixelstep[MAX_PLANES] = { 0 };
+ if (!desc || !desc->name)
return AVERROR(EINVAL);
if (desc->flags & ~(AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_PSEUDOPAL | AV_PIX_FMT_FLAG_ALPHA))
return AVERROR(ENOSYS);
return AVERROR(EINVAL);
if (desc->flags & ~(AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_PSEUDOPAL | AV_PIX_FMT_FLAG_ALPHA))
return AVERROR(ENOSYS);