h264decoder: Fix invalid memory access

gst_h264_dpb_needs_bump() can be called with null picture
in case of live

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1928>
This commit is contained in:
Seungha Yang 2022-03-11 19:32:59 +09:00
parent 2689277a6b
commit 3694045a54

View file

@ -855,8 +855,10 @@ normal_bump:
return TRUE;
}
GST_TRACE ("No empty frame buffer, but lowest poc %d > current poc %d,"
" no need bumping.", lowest_poc, to_insert->pic_order_cnt);
if (to_insert) {
GST_TRACE ("No empty frame buffer, but lowest poc %d > current poc %d,"
" no need bumping.", lowest_poc, to_insert->pic_order_cnt);
}
return FALSE;
}