[FFmpeg-cvslog] libpostproc: support grayscale
Michael Niedermayer
git at videolan.org
Mon Oct 13 02:17:25 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Oct 13 01:55:36 2014 +0200| [7a11333387b282410bd26ea7ee65cc9830796707] | committer: Michael Niedermayer
libpostproc: support grayscale
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7a11333387b282410bd26ea7ee65cc9830796707
---
libpostproc/postprocess.c | 3 +++
libpostproc/version.h | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index e3fc267..e3643ae 100644
--- a/libpostproc/postprocess.c
+++ b/libpostproc/postprocess.c
@@ -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;
diff --git a/libpostproc/version.h b/libpostproc/version.h
index e59ac19..59c2466 100644
--- a/libpostproc/version.h
+++ b/libpostproc/version.h
@@ -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, \
More information about the ffmpeg-cvslog
mailing list