Merge commit '03fbb6ff3d' into release/2.2
* commit '03fbb6ff3d': h264: only ref cur_pic in update_thread_context if it is initialized Conflicts: libavcodec/h264.c See:0fc01ae33cMerged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
b837d5bf83
1 changed files with 5 additions and 2 deletions
|
|
@ -1884,8 +1884,11 @@ static int decode_update_thread_context(AVCodecContext *dst,
|
|||
|
||||
h->cur_pic_ptr = REBASE_PICTURE(h1->cur_pic_ptr, h, h1);
|
||||
unref_picture(h, &h->cur_pic);
|
||||
if (h1->cur_pic.f.buf[0] && (ret = ref_picture(h, &h->cur_pic, &h1->cur_pic)) < 0)
|
||||
return ret;
|
||||
if (h1->cur_pic.f.buf[0]) {
|
||||
ret = ref_picture(h, &h->cur_pic, &h1->cur_pic);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
h->workaround_bugs = h1->workaround_bugs;
|
||||
h->low_delay = h1->low_delay;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue