summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2016-08-31 11:24:03 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2016-08-31 13:19:46 +0200
commitd3a23b67777a739d64080f03fc209b0ba1df7b2e (patch)
treea44fd58f636230ef01f4606cd184849fd7ef62cd
parent8175fb03f0bad68ace3c074581ea44145bf9160a (diff)
avfilter/drawutils: P010 is not supported
-rw-r--r--libavfilter/drawutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c
index 8153fdebb7..a3710db939 100644
--- a/libavfilter/drawutils.c
+++ b/libavfilter/drawutils.c
@@ -184,6 +184,8 @@ int ff_draw_init(FFDrawContext *draw, enum AVPixelFormat format, unsigned flags)
return AVERROR(EINVAL);
if (desc->flags & ~(AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_PSEUDOPAL | AV_PIX_FMT_FLAG_ALPHA))
return AVERROR(ENOSYS);
+ if (format == AV_PIX_FMT_P010LE || format == AV_PIX_FMT_P010BE)
+ return AVERROR(ENOSYS);
for (i = 0; i < desc->nb_components; i++) {
c = &desc->comp[i];
/* for now, only 8-16 bits formats */