aboutsummaryrefslogtreecommitdiffstats
path: root/tools/fourcc2pixfmt.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-10 00:44:11 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-10 04:00:06 +0200
commit9c9eac5c2666469a002963fccd8bda59eab818c6 (patch)
tree463e42c50dec0841ad74b829c5f213301b6c688a /tools/fourcc2pixfmt.c
parent958168d5056932b50ba052645925e29c5d31bdb5 (diff)
downloadffmpeg-9c9eac5c2666469a002963fccd8bda59eab818c6.tar.gz
tools/fourcc2pixfmt: Avoid using non public AV_PIX_FMT_NB
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools/fourcc2pixfmt.c')
-rw-r--r--tools/fourcc2pixfmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/fourcc2pixfmt.c b/tools/fourcc2pixfmt.c
index 1a653eda2e..1cfdf6a907 100644
--- a/tools/fourcc2pixfmt.c
+++ b/tools/fourcc2pixfmt.c
@@ -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;