diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-07-18 05:26:44 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-24 18:25:55 +0400 |
commit | c508adb22366149222797669b27fa5cdaa52fa9d (patch) | |
tree | b9bd1d91df86eb0ce608eac8d8808e5f71af7e6d /libavcodec/hevc.c | |
parent | badcd3da81ac447d71c8d6d91bfaa3f49cd5ed6b (diff) |
hevc: propagate error code from set_sps()
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 1fee4ddae9..3f1c65b75d 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; |