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:
Timothy Gu 2014-07-17 18:26:44 -07:00 committed by Michael Niedermayer
parent badcd3da81
commit c508adb223

View File

@ -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;