Commit c508adb2 authored by Timothy Gu's avatar Timothy Gu Committed by Michael Niedermayer

hevc: propagate error code from set_sps()

Signed-off-by: 's avatarTimothy Gu <timothygu99@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent badcd3da
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment