Browse code

avfilter/drawutils: P010 is not supported

Timo Rothenpieler authored on 2016/08/31 18:24:03
Showing 1 changed files
... ...
@@ -184,6 +184,8 @@ int ff_draw_init(FFDrawContext *draw, enum AVPixelFormat format, unsigned flags)
184 184
         return AVERROR(EINVAL);
185 185
     if (desc->flags & ~(AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_PSEUDOPAL | AV_PIX_FMT_FLAG_ALPHA))
186 186
         return AVERROR(ENOSYS);
187
+    if (format == AV_PIX_FMT_P010LE || format == AV_PIX_FMT_P010BE)
188
+        return AVERROR(ENOSYS);
187 189
     for (i = 0; i < desc->nb_components; i++) {
188 190
         c = &desc->comp[i];
189 191
         /* for now, only 8-16 bits formats */