1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/speedhqenc: Use av_unreachable() for unreachable condition

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2024-05-24 17:24:59 +02:00
parent 2df9c8da72
commit 831a0d0c6b

View File

@ -27,6 +27,7 @@
* SpeedHQ encoder.
*/
#include "libavutil/avassert.h"
#include "libavutil/thread.h"
#include "avcodec.h"
@ -259,7 +260,7 @@ static av_cold int speedhq_encode_init(AVCodecContext *avctx)
avctx->codec_tag = MKTAG('S','H','Q','4');
break;
default:
av_assert0(0);
av_unreachable("Already checked via CODEC_PIXFMTS");
}
m->encode_picture_header = speedhq_encode_picture_header;