summaryrefslogtreecommitdiff
path: root/libpostproc/postprocess.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-13 01:55:36 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-13 01:55:36 +0200
commit7a11333387b282410bd26ea7ee65cc9830796707 (patch)
tree6b2b82a68f612430d253e65add96730f97a7f171 /libpostproc/postprocess.c
parent25a418082597408fcf4b6c9834d371ba46afc5a2 (diff)
downloadffmpeg-7a11333387b282410bd26ea7ee65cc9830796707.tar.gz
libpostproc: support grayscale
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc/postprocess.c')
-rw-r--r--libpostproc/postprocess.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index e3fc2675a1..e3643ae381 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;