From 3290692d185e2da8e40f219176b3f7f13bcb3da0 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 7 Oct 2024 09:36:49 -0300 Subject: [PATCH] avcodec/hevc/ps: return a proper error code when we don't support parsing an sps Signed-off-by: James Almer --- libavcodec/hevc/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hevc/ps.c b/libavcodec/hevc/ps.c index 993c60144f..ffb2436d7f 100644 --- a/libavcodec/hevc/ps.c +++ b/libavcodec/hevc/ps.c @@ -1210,7 +1210,7 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id, if (sps->vps->nb_layers == 1) { av_log(avctx, AV_LOG_WARNING, "SPS %d references an unsupported VPS extension. Ignoring\n", *sps_id); - return AVERROR_INVALIDDATA; + return AVERROR(ENOSYS); } if (get_bits1(gb) && // update_rep_format_flag