aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-10-07 09:36:49 -0300
committerJames Almer <jamrial@gmail.com>2024-10-11 16:10:45 -0300
commit3290692d185e2da8e40f219176b3f7f13bcb3da0 (patch)
tree0606499b94956551c01b96696a7e17c7b0e1a698
parent1cead9029227614cb12a07e69d8823287ca980a0 (diff)
downloadffmpeg-3290692d185e2da8e40f219176b3f7f13bcb3da0.tar.gz
avcodec/hevc/ps: return a proper error code when we don't support parsing an sps
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/hevc/ps.c2
1 files changed, 1 insertions, 1 deletions
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