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

Timothy Gu git at videolan.org
Thu Jul 24 16:32:49 CEST 2014


ffmpeg | branch: master | Timothy Gu <timothygu99 at gmail.com> | Thu Jul 17 18:26:44 2014 -0700| [c508adb22366149222797669b27fa5cdaa52fa9d] | committer: Michael Niedermayer

hevc: propagate error code from set_sps()

Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c508adb22366149222797669b27fa5cdaa52fa9d
---

 libavcodec/hevc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 1fee4dd..3f1c65b 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -3311,7 +3311,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;



More information about the ffmpeg-cvslog mailing list