hevc: propagate error code from set_sps()

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/79/head
Timothy Gu 11 years ago committed by Michael Niedermayer
parent badcd3da81
commit c508adb223
  1. 3
      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;

Loading…
Cancel
Save