summaryrefslogtreecommitdiff
path: root/libavfilter/vf_mix.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-04-25 14:08:21 +0200
committerPaul B Mahol <onemda@gmail.com>2018-04-25 14:08:21 +0200
commita12899ad9b4d7de3cc255e8944094c8ce8d2aa31 (patch)
treea734f31d74c6a155868282f9a177308ff1e32bde /libavfilter/vf_mix.c
parent0b360cae1cb790fe34e681a6a674990d48d415d9 (diff)
avfiler/vf_mix: fix crash with >8 bit depth
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_mix.c')
-rw-r--r--libavfilter/vf_mix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_mix.c b/libavfilter/vf_mix.c
index 261ab066ef..a548f2663f 100644
--- a/libavfilter/vf_mix.c
+++ b/libavfilter/vf_mix.c
@@ -151,7 +151,7 @@ static int process_frame(FFFrameSync *fs)
uint16_t *dst = (uint16_t *)out->data[p];
for (y = 0; y < s->height[p]; y++) {
- for (x = 0; x < s->linesize[p]; x++) {
+ for (x = 0; x < s->linesize[p] / 2; x++) {
int val = 0;
for (i = 0; i < s->nb_inputs; i++) {