summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_sei.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/hevc_sei.c')
-rw-r--r--libavcodec/hevc_sei.c2
1 files changed, 1 insertions, 1 deletions
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;
}