From: Michael Niedermayer <[email protected]>

Fixes out of array read.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
---
 libavcodec/hevcpred_template.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/hevcpred_template.c b/libavcodec/hevcpred_template.c
index 27f4b9e..8890dc4 100644
--- a/libavcodec/hevcpred_template.c
+++ b/libavcodec/hevcpred_template.c
@@ -156,6 +156,7 @@ static void FUNC(intra_pred)(HEVCContext *s, int x0, int 
y0, int log2_size, int
             left[i] = 128;
             top[i]  = 128;
         }
+        top[-1] = 128;
     }
     if (cand_bottom_left) {
         for (i = size + bottom_left_size; i < (size << 1); i++)
-- 
1.8.3.4 (Apple Git-47)

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to