[FFmpeg-cvslog] avfiler/vf_mix: fix crash with >8 bit depth

Paul B Mahol git at videolan.org
Wed Apr 25 15:09:49 EEST 2018


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Apr 25 14:08:21 2018 +0200| [a12899ad9b4d7de3cc255e8944094c8ce8d2aa31] | committer: Paul B Mahol

avfiler/vf_mix: fix crash with >8 bit depth

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a12899ad9b4d7de3cc255e8944094c8ce8d2aa31
---

 libavfilter/vf_mix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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++) {



More information about the ffmpeg-cvslog mailing list