Changeset 1ad2022a9d5d65173ad85c9b28d1f7237a8a8d79
- Timestamp:
- 11/12/05 22:11:46
(3 years ago)
- Author:
- Boris Dorès <babal@videolan.org>
- git-committer:
- Boris Dorès <babal@videolan.org> 1134335506 +0000
- git-parent:
[3fbfb3d4a2960ba8833db55e80711c5279ba45a6]
- git-author:
- Boris Dorès <babal@videolan.org> 1134335506 +0000
- Message:
- correct calculation of the size of the overflow buffer
(fixes a crash with mono streams)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r53e8222 |
r1ad2022 |
|
| 151 | 151 | D: Win32 network input |
|---|
| 152 | 152 | D: Win32 interface |
|---|
| 153 | | D: Headphone channel mixer |
|---|
| | 153 | D: Headphone channel mixer, Dolby Surround decoder |
|---|
| | 154 | D: Audio output core enhancements |
|---|
| 154 | 155 | S: France |
|---|
| 155 | 156 | |
|---|
| r989a7bd |
r1ad2022 |
|
| 316 | 316 | { |
|---|
| 317 | 317 | if ( p_data->i_overflow_buffer_size |
|---|
| 318 | | < p_data->p_atomic_operations[i].i_delay * i_nb_channels |
|---|
| 319 | | * sizeof (float) ) |
|---|
| | 318 | < p_data->p_atomic_operations[i].i_delay * 2 * sizeof (float) ) |
|---|
| 320 | 319 | { |
|---|
| 321 | 320 | p_data->i_overflow_buffer_size |
|---|
| 322 | | = p_data->p_atomic_operations[i].i_delay * i_nb_channels |
|---|
| 323 | | * sizeof (float); |
|---|
| | 321 | = p_data->p_atomic_operations[i].i_delay * 2 * sizeof (float); |
|---|
| 324 | 322 | } |
|---|
| 325 | 323 | } |
|---|
| … | … | |
| 403 | 401 | , aout_FormatNbChannels ( &p_filter->input ) |
|---|
| 404 | 402 | , p_filter->input.i_physical_channels |
|---|
| 405 | | , p_filter->input.i_rate ) < 0 ) |
|---|
| | 403 | , p_filter->input.i_rate ) < 0 ) |
|---|
| 406 | 404 | { |
|---|
| 407 | 405 | return VLC_EGENERIC; |
|---|