avcodec/hevc/ps: return a proper error code when we don't support parsing an sps

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-10-07 09:36:49 -03:00
parent 1cead90292
commit 3290692d18
1 changed files with 1 additions and 1 deletions

View File

@ -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