h264: Clear ERContext.cur_pic when unref'ing current picture.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
(cherry picked from commit 4feca2214a)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
061e948153
commit
dcf0f82d08
1 changed files with 4 additions and 0 deletions
|
|
@ -1957,6 +1957,10 @@ static int h264_frame_start(H264Context *h)
|
|||
|
||||
h->cur_pic_ptr = pic;
|
||||
unref_picture(h, &h->cur_pic);
|
||||
if (CONFIG_ERROR_RESILIENCE) {
|
||||
h->er.cur_pic = NULL;
|
||||
}
|
||||
|
||||
if ((ret = ref_picture(h, &h->cur_pic, h->cur_pic_ptr)) < 0)
|
||||
return ret;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue