On 12/26/2024 3:35 PM, Zhao Zhili wrote:

在 2024年12月27日,上午12:42,James Almer <g...@videolan.org> 写道:

ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Thu Dec 26 
13:41:04 2024 -0300| [7e778586e7efceacae33b12b9b3673838060f8f2] | committer: James 
Almer

avcodec/libx265: ignore user set alpha x265-param

It makes no difference when the input has an alpha plane, and may end up in
crashes or undefined behavior if it doesn't.

Signed-off-by: James Almer <jamr...@gmail.com>

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

libavcodec/cbs_h2645.c |  6 +++---
libavcodec/libx265.c   | 16 +++++++++++++++-
2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c
index 369e3ac876..647b1c785e 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;

How this part related to libx265?

It's not. It was accidentally included because of a git -a.

Will revert.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to