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

Signed-off-by: James Almer <jamrial@gmail.com>
pull/153/merge
James Almer 3 months ago
parent 1cead90292
commit 3290692d18
  1. 2
      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

Loading…
Cancel
Save