mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
rmdemux: Check that enough SIPR audio data is available when copying
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5072>
This commit is contained in:
parent
b268b27cd8
commit
aca056b01d
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_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);
|
gst_buffer_unmap (outbuf, &outmap);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue