[FFmpeg-cvslog] avcodec/dovi_rpuenc: Use av_unreachable() instead of av_assert0(0)

Andreas Rheinhardt git at videolan.org
Fri May 30 21:12:30 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri May 30 18:35:48 2025 +0200| [1b5a291dcc24cdb6eeab725ec283befe8c288a1a] | committer: Andreas Rheinhardt

avcodec/dovi_rpuenc: Use av_unreachable() instead of av_assert0(0)

Reviewed-by: Niklas Haas <ffmpeg at haasn.xyz>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 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) {



More information about the ffmpeg-cvslog mailing list