summaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-27 17:43:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-27 17:45:07 +0200
commite10ac3a12ea82154c36cf7467718968b40b09842 (patch)
treeddb1899bfa200494c2003bcc4088a7baf886ffd8 /libavfilter
parentcfa0ad6eec96e4fec8ee18512f3c9ac1ff2e1720 (diff)
downloadffmpeg-streaming-e10ac3a12ea82154c36cf7467718968b40b09842.zip
ffmpeg-streaming-e10ac3a12ea82154c36cf7467718968b40b09842.tar.gz
avfilter/vf_swapuv: Avoid using non public AV_PIX_FMT_NB
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_swapuv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_swapuv.c b/libavfilter/vf_swapuv.c
index 71ae243..175e39c 100644
--- a/libavfilter/vf_swapuv.c
+++ b/libavfilter/vf_swapuv.c
@@ -73,7 +73,7 @@ static int query_formats(AVFilterContext *ctx)
AVFilterFormats *formats = NULL;
int fmt;
- for (fmt = 0; fmt < AV_PIX_FMT_NB; fmt++) {
+ for (fmt = 0; av_pix_fmt_desc_get(fmt); fmt++) {
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
if (is_planar_yuv(desc))
ff_add_format(&formats, fmt);
OpenPOWER on IntegriCloud