mirror of
https://github.com/openharmony/third_party_alsa-utils.git
synced 2026-07-19 20:43:35 -04:00
aplay: Fix --max-file-time option 32 bits overflow
Fix bug in arecord --max-file-time where the file size could overflow 32 bits. Signed-off-by: Scott Gilliland <scott.gilliland@gatech.edu> Acked-by: John Sauter <John_Sauter@systemeyescomputerstore.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Takashi Iwai
parent
1e96c5f50e
commit
a28ff22df8
+1
-1
@@ -3027,7 +3027,7 @@ static void capture(char *orig_name)
|
||||
if (count == 0)
|
||||
count = LLONG_MAX;
|
||||
/* compute the number of bytes per file */
|
||||
max_file_size = max_file_time *
|
||||
max_file_size = (long long) max_file_time *
|
||||
snd_pcm_format_size(hwparams.format,
|
||||
hwparams.rate * hwparams.channels);
|
||||
/* WAVE-file should be even (I'm not sure), but wasting one byte
|
||||
|
||||
Reference in New Issue
Block a user