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; return TRUE;
} }
GST_TRACE ("No empty frame buffer, but lowest poc %d > current poc %d," if (to_insert) {
" no need bumping.", lowest_poc, to_insert->pic_order_cnt); 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; return FALSE;
} }