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

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

Reviewed-by: Niklas Haas <ffmpeg@haasn.xyz>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-05-30 18:35:48 +02:00
parent 0adfe15829
commit 1b5a291dcc

View File

@ -103,9 +103,7 @@ static av_cold int dovi_configure_ext(DOVIContext *s, enum AVCodecID codec_id,
dv_profile = 8; dv_profile = 8;
break; break;
default: default:
/* No other encoder should be calling this! */ av_unreachable("ff_dovi_configure only used with AV1, H.264 and HEVC");
av_assert0(0);
return AVERROR_BUG;
} }
if (strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL) { if (strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL) {