]> git.sesse.net Git - ffmpeg/commitdiff
libpostproc: support grayscale
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 12 Oct 2014 23:55:36 +0000 (01:55 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 12 Oct 2014 23:55:36 +0000 (01:55 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libpostproc/postprocess.c
libpostproc/version.h

index e3fc2675a121d1604688807d229ed2afa2ee2b1f..e3643ae381ee8639af0bcf1e22cab9f8c2c8cd8d 100644 (file)
@@ -1042,6 +1042,9 @@ void  pp_postprocess(const uint8_t * src[3], const int srcStride[3],
     postProcess(src[0], srcStride[0], dst[0], dstStride[0],
                 width, height, QP_store, QPStride, 0, mode, c);
 
+    if (!(src[1] && src[2] && dst[1] && dst[2]))
+        return;
+
     width  = (width )>>c->hChromaSubSample;
     height = (height)>>c->vChromaSubSample;
 
index e59ac197acbbdf6599e794fd595a2f4bcd8c7ea3..59c24660f8388c3c10541fce8169f86d56ab6e87 100644 (file)
@@ -29,7 +29,7 @@
 #include "libavutil/avutil.h"
 
 #define LIBPOSTPROC_VERSION_MAJOR  53
-#define LIBPOSTPROC_VERSION_MINOR   2
+#define LIBPOSTPROC_VERSION_MINOR   3
 #define LIBPOSTPROC_VERSION_MICRO 100
 
 #define LIBPOSTPROC_VERSION_INT AV_VERSION_INT(LIBPOSTPROC_VERSION_MAJOR, \