Tested-By: fate-hevc-conformance-PPS_A_qualcomm_7
---

This one covers all the problems and passes fate, still bogus though.

 libavcodec/hevcpred_template.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavcodec/hevcpred_template.c b/libavcodec/hevcpred_template.c
index 6e3f08b..c3649bc 100644
--- a/libavcodec/hevcpred_template.c
+++ b/libavcodec/hevcpred_template.c
@@ -185,7 +185,8 @@ static void FUNC(intra_pred)(HEVCContext *s, int x0, int 
y0, int log2_size, int
             } else {
                 j = 0;
                 while(j<size_max_x && !IS_INTRA(j, -1)) j++;
-                EXTEND_LEFT_CIP(top, j, j+1);
+                if (j > 0)
+                    EXTEND_LEFT_CIP(top, j, j+1);
                 left[-1] = top[-1];
                 j = 0;
             }
@@ -198,7 +199,7 @@ static void FUNC(intra_pred)(HEVCContext *s, int x0, int 
y0, int log2_size, int
             if (!cand_bottom_left) {
                 EXTEND_DOWN(left, size, size);
             }
-            if (y0 != 0) {
+            if (x0 != 0 && y0 != 0) {
                 EXTEND_UP_CIP(left, size_max_y-1, size_max_y);
             } else {
                 EXTEND_UP_CIP(left, size_max_y-1, size_max_y-1);
--
1.8.3.2

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

Reply via email to