From fb0f29f9aaaf7f860b0d8100ea74734a2efbe2d8 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 6 May 2017 22:57:43 -0300 Subject: [PATCH] avcodec/hevc_sei: actually propagate error codes --- libavcodec/hevc_sei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hevc_sei.c b/libavcodec/hevc_sei.c index c5054bfaab..b86f7e4d6f 100644 --- a/libavcodec/hevc_sei.c +++ b/libavcodec/hevc_sei.c @@ -346,7 +346,7 @@ int ff_hevc_decode_nal_sei(GetBitContext *gb, void *logctx, HEVCSEIContext *s, do { ret = decode_nal_sei_message(gb, s, ps, type, logctx); if (ret < 0) - return(AVERROR(ENOMEM)); + return ret; } while (more_rbsp_data(gb)); return 1; }