summaryrefslogtreecommitdiff
path: root/libavfilter/vf_uspp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-13 17:16:49 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-13 17:16:49 +0100
commit609a73b6ff30fbafcd84aba35de1ff3d65e4ba8e (patch)
tree98060fba350e003c4a544aa9b5fa59f493844dfd /libavfilter/vf_uspp.c
parent3dd5f7aaa091e69fc7cd5044cbd0d18ecb284eac (diff)
avfilter/vf_uspp: fix gray pixfmt handling
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_uspp.c')
-rw-r--r--libavfilter/vf_uspp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_uspp.c b/libavfilter/vf_uspp.c
index 4447a82ba5..3fd48d5c8f 100644
--- a/libavfilter/vf_uspp.c
+++ b/libavfilter/vf_uspp.c
@@ -271,6 +271,9 @@ static void filter(USPPContext *p, uint8_t *dst[3], uint8_t *src[3],
for (x = 0; x < width; x++)
p->temp[0][x + y * p->temp_stride[0]] += p->frame_dec->data[0][x + y * p->frame_dec->linesize[0] + offset];
+ if (!src[2] || !dst[2])
+ continue;
+
offset = (BLOCKc-x1c) + (BLOCKc-y1c) * p->frame_dec->linesize[1];
for (y = 0; y < height>>p->vsub; y++) {