gst_h264_dpb_needs_bump() can be called with null picture
in case of live
Change-Id: I451e3602e11ad584dbd4640ff90f0e2a939e7037
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1929>
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;
}