hevc: propagate error code from set_sps()
Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
badcd3da81
commit
c508adb223
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user