From 8753859d10c5c06f662f3290a462c1705307e01e Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 30 May 2025 18:35:48 +0200 Subject: [PATCH 3/4] avcodec/dovi_rpuenc: Use av_unreachable() instead of av_assert0(0) Signed-off-by: Andreas Rheinhardt --- libavcodec/dovi_rpuenc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/dovi_rpuenc.c b/libavcodec/dovi_rpuenc.c index 4efcbb4ce8..b05ad0a358 100644 --- a/libavcodec/dovi_rpuenc.c +++ b/libavcodec/dovi_rpuenc.c @@ -103,9 +103,7 @@ static av_cold int dovi_configure_ext(DOVIContext *s, enum AVCodecID codec_id, dv_profile = 8; break; default: - /* No other encoder should be calling this! */ - av_assert0(0); - return AVERROR_BUG; + av_unreachable("ff_dovi_configure only used with AV1, H.264 and HEVC"); } if (strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL) { -- 2.45.2