Browse Source

hevc: propagate error code from set_sps()

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4
Timothy Gu Michael Niedermayer 11 years ago
parent
commit
c508adb223
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/hevc.c

+ 2
- 1
libavcodec/hevc.c 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;


Loading…
Cancel
Save