[FFmpeg-cvslog] avcodec/cbs_h2645: revert accidental change

James Almer git at videolan.org
Thu Dec 26 20:46:53 EET 2024


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Dec 26 15:45:30 2024 -0300| [3e6d89cd97d0ec66cc685fec048273e59b3e5958] | committer: James Almer

avcodec/cbs_h2645: revert accidental change

This was erroneously included in 7e778586e7efceacae33b12b9b3673838060f8f2.

Reported-by: Zhao Zhili <quinkblack at foxmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavcodec/cbs_h2645.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c
index 647b1c785e..369e3ac876 100644
--- a/libavcodec/cbs_h2645.c
+++ b/libavcodec/cbs_h2645.c
@@ -499,9 +499,9 @@ static int cbs_h2645_fragment_add_nals(CodedBitstreamContext *ctx,
         size_t size = nal->size;
         enum AVCodecID codec_id = ctx->codec->codec_id;
 
-//        if (codec_id == AV_CODEC_ID_HEVC && nal->nuh_layer_id > 0 &&
-  //          (nal->type < HEVC_NAL_VPS || nal->type > HEVC_NAL_PPS))
-    //        continue;
+        if (codec_id == AV_CODEC_ID_HEVC && nal->nuh_layer_id > 0 &&
+            (nal->type < HEVC_NAL_VPS || nal->type > HEVC_NAL_PPS))
+            continue;
 
         // Remove trailing zeroes.
         while (size > 0 && nal->data[size - 1] == 0)



More information about the ffmpeg-cvslog mailing list