Browse Source

avfiler/vf_mix: fix crash with >8 bit depth

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n4.1
Paul B Mahol 7 years ago
parent
commit
a12899ad9b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_mix.c

+ 1
- 1
libavfilter/vf_mix.c View File

@@ -151,7 +151,7 @@ static int process_frame(FFFrameSync *fs)
uint16_t *dst = (uint16_t *)out->data[p]; uint16_t *dst = (uint16_t *)out->data[p];


for (y = 0; y < s->height[p]; y++) { 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; int val = 0;


for (i = 0; i < s->nb_inputs; i++) { for (i = 0; i < s->nb_inputs; i++) {


Loading…
Cancel
Save