The branch, master has been updated
via 82c495fd15d0941c26349bb41b007da57cee65f8 (commit)
from 0f105b96a3c7ef1ec88c29a7ac9d9687fc80ea62 (commit)
- Log -----------------------------------------------------------------
commit 82c495fd15d0941c26349bb41b007da57cee65f8
Author: Zhao Zhili <[email protected]>
AuthorDate: Wed Oct 22 21:13:00 2025 +0800
Commit: Zhao Zhili <[email protected]>
CommitDate: Thu Oct 30 09:26:17 2025 +0000
avcodec/hevc: fix false alarm when build with enable-small
profile_name is always NULL with --enable-small, which leading to
a warning message "Unknown profile bitstream".
diff --git a/libavcodec/hevc/ps.c b/libavcodec/hevc/ps.c
index 57125d59c1..1b7c275ba4 100644
--- a/libavcodec/hevc/ps.c
+++ b/libavcodec/hevc/ps.c
@@ -238,7 +238,6 @@ int ff_hevc_decode_short_term_rps(GetBitContext *gb,
AVCodecContext *avctx,
static int decode_profile_tier_level(GetBitContext *gb, AVCodecContext *avctx,
PTLCommon *ptl)
{
- const char *profile_name = NULL;
int i;
if (get_bits_left(gb) < 2+1+5 + 32 + 4 + 43 + 1)
@@ -249,14 +248,15 @@ static int decode_profile_tier_level(GetBitContext *gb,
AVCodecContext *avctx,
ptl->profile_idc = get_bits(gb, 5);
#if !CONFIG_SMALL
+ const char *profile_name = NULL;
for (int i = 0; ff_hevc_profiles[i].profile != AV_PROFILE_UNKNOWN; i++)
if (ff_hevc_profiles[i].profile == ptl->profile_idc) {
profile_name = ff_hevc_profiles[i].name;
break;
}
-#endif
av_log(avctx, profile_name ? AV_LOG_DEBUG : AV_LOG_WARNING,
"%s profile bitstream\n", profile_name ? profile_name : "Unknown");
+#endif
for (i = 0; i < 32; i++) {
ptl->profile_compatibility_flag[i] = get_bits1(gb);
-----------------------------------------------------------------------
Summary of changes:
libavcodec/hevc/ps.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]