diff mbox

[FFmpeg-devel,1/3] avfilter/drawutils: P010 is not supported

Message ID 20160831093349.11140-1-timo@rothenpieler.org
State Accepted
Commit d3a23b67777a739d64080f03fc209b0ba1df7b2e
Headers show

Commit Message

Timo Rothenpieler Aug. 31, 2016, 9:33 a.m. UTC
---
 libavfilter/drawutils.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Michael Niedermayer Aug. 31, 2016, 7:50 p.m. UTC | #1
On Wed, Aug 31, 2016 at 11:33:47AM +0200, Timo Rothenpieler wrote:
> ---
>  libavfilter/drawutils.c | 2 ++
>  1 file changed, 2 insertions(+)

LGTM
thx

[...]
diff mbox

Patch

diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c
index 8153fde..a3710db 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 */