[FFmpeg-cvslog] avcodec/hevc/ps: return a proper error code when we don't support parsing an sps

James Almer git at videolan.org
Fri Oct 11 22:11:16 EEST 2024


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Oct  7 09:36:49 2024 -0300| [3290692d185e2da8e40f219176b3f7f13bcb3da0] | committer: James Almer

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

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3290692d185e2da8e40f219176b3f7f13bcb3da0
---

 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



More information about the ffmpeg-cvslog mailing list