mirror of https://git.ffmpeg.org/ffmpeg.git
avdevice/lavfi: Don't require AV_PIX_FMT_NONE == -1
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b7e3ae19b8
commit
61bbd0cf3c
|
@ -76,7 +76,7 @@ static int *create_all_formats(int n)
|
||||||
if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL))
|
if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL))
|
||||||
fmts[j++] = i;
|
fmts[j++] = i;
|
||||||
}
|
}
|
||||||
fmts[j] = -1;
|
fmts[j] = AV_PIX_FMT_NONE;
|
||||||
return fmts;
|
return fmts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue