Message150373
| Author |
Oleg.Plakhotnyuk |
| Recipients |
Oleg.Plakhotnyuk, ezio.melotti, r.david.murray |
| Date |
2011年12月30日.11:17:08 |
| SpamBayes Score |
3.234306e-05 |
| Marked as misclassified |
No |
| Message-id |
<1325243830.12.0.0659769703479.issue13681@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This patch resolves two issues:
1. ADPCM compressed audio files reading. Such files have frame size of 4 bits. Aifc lib cannot represent 4 bits frame size because it uses integer bytes count variable. I have replaced it with bits count.
2. ALAW/ULAW/ADPCM audio data decompression. According to documentation (http://docs.python.org/library/audioop.html), adpcm2lin, alaw2lin and ulaw2lin are using 'width' argument to represent output frames width. However, in audioop.c module there are checks that are raising exceptions if input frames length is not multiple of 'width'. I have replaced checking of 'len' to match 'size' with checking of 'len*size' to match 'size' in order to retain only basic length validity checks. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年12月30日 11:17:10 | Oleg.Plakhotnyuk | set | recipients:
+ Oleg.Plakhotnyuk, ezio.melotti, r.david.murray |
| 2011年12月30日 11:17:10 | Oleg.Plakhotnyuk | set | messageid: <1325243830.12.0.0659769703479.issue13681@psf.upfronthosting.co.za> |
| 2011年12月30日 11:17:09 | Oleg.Plakhotnyuk | link | issue13681 messages |
| 2011年12月30日 11:17:09 | Oleg.Plakhotnyuk | create |
|