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; }