mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
tools/fourcc2pixfmt: Avoid using non public AV_PIX_FMT_NB
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
958168d505
commit
9c9eac5c26
@ -100,7 +100,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
if (list_pix_fmt_fourccs) {
|
||||
for (i = 0; i < AV_PIX_FMT_NB; i++) {
|
||||
for (i = 0; av_pix_fmt_desc_get(i); i++) {
|
||||
const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(i);
|
||||
if (!pix_desc->name || pix_desc->flags & AV_PIX_FMT_FLAG_HWACCEL)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user