History

src/src_(linear|zoh).c : Fix for bug in zero_input_test(). Both these converters crashed if the input_frames field of SRC_DATA was zero.

Erik de Castro Lopo committed 17 years ago

Commit 6707f5c1 parent f2e38233 files · +10 −0Browse files

Unified · Split

3 files
  1. ChangeLog +4 −0
  2. src/src_linear.c +3 −0
  3. src/src_zoh.c +3 −0
ChangeLog+4−0
@@ -3,6 +3,10 @@ · 2 unmodified lines
3 * tests/misc_test.c3 * tests/misc_test.c
4 Add zero_input_test() from debian bug #506722.4 Add zero_input_test() from debian bug #506722.
5 5
6 * src/src_linear.c src/src_zoh.c
7 Fix for bug in zero_input_test(). Both these converters crashed if the
8 input_frames field of SRC_DATA was zero.
9
62009-09-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>102009-09-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
7 11
8 * M4/endian.m412 * M4/endian.m4
src/src_linear.c+3−0
@@ -58,6 +58,9 @@ linear_vari_process (SRC_PRIVATE *psrc, SRC_DATA *data) · 57 unmodified lines
58 double src_ratio, input_index, rem ;58 double src_ratio, input_index, rem ;
59 int ch ;59 int ch ;
60 60
61 if (data->input_frames <= 0)
62 return SRC_ERR_NO_ERROR ;
63
61 if (psrc->private_data == NULL)64 if (psrc->private_data == NULL)
62 return SRC_ERR_NO_PRIVATE ;65 return SRC_ERR_NO_PRIVATE ;
63 66
src/src_zoh.c+3−0
@@ -56,6 +56,9 @@ zoh_vari_process (SRC_PRIVATE *psrc, SRC_DATA *data) · 55 unmodified lines
56 double src_ratio, input_index, rem ;56 double src_ratio, input_index, rem ;
57 int ch ;57 int ch ;
58 58
59 if (data->input_frames <= 0)
60 return SRC_ERR_NO_ERROR ;
61
59 if (psrc->private_data == NULL)62 if (psrc->private_data == NULL)
60 return SRC_ERR_NO_PRIVATE ;63 return SRC_ERR_NO_PRIVATE ;
61 64

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t