ffmpeg | branch: master | Timothy Gu <[email protected]> | Thu Jul 17 18:26:44 2014 -0700| [c508adb22366149222797669b27fa5cdaa52fa9d] | committer: Michael Niedermayer
hevc: propagate error code from set_sps() Signed-off-by: Timothy Gu <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]> > 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; _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
