ext/alsa/gstalsasink.c: Safety guard.

Original commit message from CVS:
* ext/alsa/gstalsasink.c: (gst_alsa_sink_loop):
Safety guard.
This commit is contained in:
Ronald S. Bultje 2005-01-19 21:43:54 +00:00
parent ae4ad01fe8
commit e8ac08c520
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-01-19 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/alsa/gstalsasink.c: (gst_alsa_sink_loop):
Safety guard.
2005-01-19 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/avi/gstavimux.c: (gst_avimux_write_tag):

View file

@ -447,7 +447,7 @@ sink_restart:
int width = snd_pcm_format_physical_width (this->format->format);
int size = samples * width / 8;
if (size / (width / 8) != samples) {
if (size / (width / 8) != samples || samples > max_discont) {
GST_WARNING_OBJECT (this,
"Integer overflow for size=%d/samples=%d - broken stream",
size, samples);