avcodec/hevc_sei: actually propagate error codes
authorJames Almer <jamrial@gmail.com>
Sun, 7 May 2017 01:57:43 +0000 (22:57 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 7 May 2017 01:57:43 +0000 (22:57 -0300)
libavcodec/hevc_sei.c

index c5054bf..b86f7e4 100644 (file)
@@ -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;
 }