avfilter/vf_cropdetect: add RGB & RGBA support
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 30 Dec 2014 01:19:05 +0000 (02:19 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 30 Dec 2014 01:19:05 +0000 (02:19 +0100)
These where already supported in the code but not listed in the supported
pixel formats.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_cropdetect.c

index c2c1bc4..fb7be8e 100644 (file)
@@ -52,6 +52,8 @@ static int query_formats(AVFilterContext *ctx)
         AV_PIX_FMT_YUV411P, AV_PIX_FMT_GRAY8,
         AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUV410P,
         AV_PIX_FMT_NV12,    AV_PIX_FMT_NV21,
+        AV_PIX_FMT_RGB24,   AV_PIX_FMT_BGR24,
+        AV_PIX_FMT_RGBA,    AV_PIX_FMT_BGRA,
         AV_PIX_FMT_NONE
     };