mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
planaraudioadapter: fix possible NULL ptr dereference
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1288>
This commit is contained in:
parent
5044967382
commit
9bb508c742
1 changed files with 1 additions and 2 deletions
|
@ -404,8 +404,7 @@ gst_planar_audio_adapter_get_buffer (GstPlanarAudioAdapter * adapter,
|
|||
gsize cur_skip = skip;
|
||||
gsize take_from_cur;
|
||||
GSList *cur_node = adapter->buflist;
|
||||
|
||||
while (need > 0) {
|
||||
while (cur_node && need > 0) {
|
||||
cur = cur_node->data;
|
||||
meta = gst_buffer_get_audio_meta (cur);
|
||||
take_from_cur = need > (meta->samples - cur_skip) ?
|
||||
|
|
Loading…
Reference in a new issue