Commit 9c9eac5c authored by Michael Niedermayer's avatar Michael Niedermayer

tools/fourcc2pixfmt: Avoid using non public AV_PIX_FMT_NB

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 958168d5
...@@ -100,7 +100,7 @@ int main(int argc, char **argv) ...@@ -100,7 +100,7 @@ int main(int argc, char **argv)
} }
if (list_pix_fmt_fourccs) { 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); const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(i);
if (!pix_desc->name || pix_desc->flags & AV_PIX_FMT_FLAG_HWACCEL) if (!pix_desc->name || pix_desc->flags & AV_PIX_FMT_FLAG_HWACCEL)
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment