Browse code

avfilter/vf_transpose: Avoid using non public AV_PIX_FMT_NB

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2014/05/28 00:43:03
Showing 1 changed files
... ...
@@ -65,7 +65,7 @@ static int query_formats(AVFilterContext *ctx)
65 65
     AVFilterFormats *pix_fmts = NULL;
66 66
     int fmt;
67 67
 
68
-    for (fmt = 0; fmt < AV_PIX_FMT_NB; fmt++) {
68
+    for (fmt = 0; av_pix_fmt_desc_get(fmt); fmt++) {
69 69
         const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
70 70
         if (!(desc->flags & AV_PIX_FMT_FLAG_PAL ||
71 71
               desc->flags & AV_PIX_FMT_FLAG_HWACCEL ||