Commit 4feca221 authored by Dale Curtis's avatar Dale Curtis Committed by Michael Niedermayer

h264: Clear ERContext.cur_pic when unref'ing current picture.

Signed-off-by: 's avatarDale Curtis <dalecurtis@chromium.org>
parent 2e59ffbb
......@@ -1972,6 +1972,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;
......
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