Commit 87e46dd5 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '0652e024'

* commit '0652e024':
  h264: reset ref count if decoding the slice header fails
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 59fb3c4b 0652e024
......@@ -5056,9 +5056,10 @@ again:
context_count = 0;
}
if (err < 0)
if (err < 0) {
av_log(h->avctx, AV_LOG_ERROR, "decode_slice_header error\n");
else if (err == 1) {
h->ref_count[0] = h->ref_count[1] = h->list_count = 0;
} else if (err == 1) {
/* Slice could not be decoded in parallel mode, copy down
* NAL unit stuff to context 0 and restart. Note that
* rbsp_buffer is not transferred, but since we no longer
......
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