mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-11 10:34:11 +00:00
rmdemux: Check that enough SIPR audio data is available when copying
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5073>
This commit is contained in:
parent
4266ba0fd2
commit
743381cba7
1 changed files with 7 additions and 1 deletions
|
@ -2168,7 +2168,13 @@ gst_rmdemux_descramble_sipr_audio (GstRMDemux * rmdemux,
|
|||
GST_BUFFER_PTS (outbuf) = GST_BUFFER_PTS (b);
|
||||
}
|
||||
|
||||
gst_buffer_extract (b, 0, outmap.data + packet_size * p, packet_size);
|
||||
if (gst_buffer_extract (b, 0, outmap.data + packet_size * p,
|
||||
packet_size) != packet_size) {
|
||||
GST_ERROR_OBJECT (rmdemux, "not enough SIPR audio data available");
|
||||
gst_buffer_unmap (outbuf, &outmap);
|
||||
gst_buffer_unref (outbuf);
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
}
|
||||
gst_buffer_unmap (outbuf, &outmap);
|
||||
|
||||
|
|
Loading…
Reference in a new issue