[FFmpeg-devel] [PATCH 12/12] avcodec/speedhqenc: Use av_unreachable for unreachable condition

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Sat May 25 01:04:55 EEST 2024


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/speedhqenc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/speedhqenc.c b/libavcodec/speedhqenc.c
index 5b4ff4c139..29d603c729 100644
--- a/libavcodec/speedhqenc.c
+++ b/libavcodec/speedhqenc.c
@@ -128,7 +128,8 @@ av_cold int ff_speedhq_encode_init(MpegEncContext *s)
         s->avctx->codec_tag = MKTAG('S','H','Q','4');
         break;
     default:
-        av_assert0(0);
+        /* Already checked via AVCodec.pix_fmts. */
+        av_unreachable;
     }
 
     return 0;
-- 
2.40.1



More information about the ffmpeg-devel mailing list