[FFmpeg-devel] [PATCH] avcodec/hevc/ps: return a proper error code when we don't support parsing an sps
James Almer
jamrial at gmail.com
Mon Oct 7 15:36:49 EEST 2024
Signed-off-by: James Almer <jamrial at gmail.com>
---
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 c773d7d221..2f47410e66 100644
--- a/libavcodec/hevc/ps.c
+++ b/libavcodec/hevc/ps.c
@@ -1215,7 +1215,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
--
2.46.2
More information about the ffmpeg-devel
mailing list