[FFmpeg-devel] [PATCH] hevc: propagate error code from set_sps()

Timothy Gu timothygu99 at gmail.com
Fri Jul 18 03:26:44 CEST 2014


Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
 libavcodec/hevc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index afb2baa..d3108d7 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -3299,7 +3299,8 @@ static int hevc_update_thread_context(AVCodecContext *dst,
     }
 
     if (s->sps != s0->sps)
-        ret = set_sps(s, s0->sps);
+        if ((ret = set_sps(s, s0->sps)) < 0)
+            return ret;
 
     s->seq_decode = s0->seq_decode;
     s->seq_output = s0->seq_output;
-- 
1.9.1



More information about the ffmpeg-devel mailing list