[FFmpeg-cvslog] lavc/vaapi_hevc: Remove duplicate code

Fei Wang git at videolan.org
Mon Mar 27 17:33:40 EEST 2023


ffmpeg | branch: master | Fei Wang <fei.w.wang at intel.com> | Mon Mar 27 13:26:53 2023 +0800| [c549bc9d96b901c1df1e564be541ed052e92d943] | committer: J. Dekker

lavc/vaapi_hevc: Remove duplicate code

Signed-off-by: Fei Wang <fei.w.wang at intel.com>

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

 libavcodec/vaapi_hevc.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c
index 0e5da15e53..984af75c84 100644
--- a/libavcodec/vaapi_hevc.c
+++ b/libavcodec/vaapi_hevc.c
@@ -542,12 +542,6 @@ static int vaapi_hevc_decode_slice(AVCodecContext *avctx,
             pic->last_slice_param.rext.ChromaOffsetL0[i][1] = sh->chroma_offset_l0[i][1];
         }
 
-        for (i = 0; i < 15 && i < sh->nb_refs[L0]; i++) {
-            pic->last_slice_param.rext.luma_offset_l0[i] = sh->luma_offset_l0[i];
-            pic->last_slice_param.rext.ChromaOffsetL0[i][0] = sh->chroma_offset_l0[i][0];
-            pic->last_slice_param.rext.ChromaOffsetL0[i][1] = sh->chroma_offset_l0[i][1];
-        }
-
         if (sh->slice_type == HEVC_SLICE_B) {
             for (i = 0; i < 15 && i < sh->nb_refs[L1]; i++) {
                 pic->last_slice_param.rext.luma_offset_l1[i] = sh->luma_offset_l1[i];



More information about the ffmpeg-cvslog mailing list