mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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:
parent
2689277a6b
commit
3694045a54
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue