[FFmpeg-cvslog] avcodec/hevcpred_template: Removed unreachable code

Dawid Kozinski git at videolan.org
Tue Oct 3 15:45:16 EEST 2023


ffmpeg | branch: master | Dawid Kozinski <d.kozinski at samsung.com> | Fri Sep 29 10:32:13 2023 +0200| [3ba3e188b32a48cfca36f02ea9671e22f4c2482c] | committer: Ronald S. Bultje

avcodec/hevcpred_template: Removed unreachable code

Signed-off-by: Dawid Kozinski <d.kozinski at samsung.com>
Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

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

 libavcodec/hevcpred_template.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/libavcodec/hevcpred_template.c b/libavcodec/hevcpred_template.c
index 16d1c7f35f..46bd806523 100644
--- a/libavcodec/hevcpred_template.c
+++ b/libavcodec/hevcpred_template.c
@@ -213,13 +213,10 @@ do {                                  \
                 j = 0;
                 while (j < size_max_x && !IS_INTRA(j, -1))
                     j++;
-                if (j > 0)
-                    if (cand_up_left) {
-                        EXTEND_LEFT_CIP(top, j, j + 1);
-                    } else {
-                        EXTEND_LEFT_CIP(top, j, j);
-                        top[-1] = top[0];
-                    }
+                if (j > 0) {
+                    EXTEND_LEFT_CIP(top, j, j);
+                    top[-1] = top[0];
+                }
                 left[-1] = top[-1];
             }
             left[-1] = top[-1];



More information about the ffmpeg-cvslog mailing list