New submission from Serhiy Storchaka:

The proposed patch fixes followed bugs in the sunau module:

1. Au_read.readframes() reads wrong number of frames from multichannel stream.

2. Au_read.readframes() doesn't change current file position.

3. Au_write.writeframesraw() incorrectly updates current file position in a 
stream with u-Law compression.

4. Au_read.getnframes() returns a float (underporting from Python 2).

5. Au_write incorrectly updates header when it was opened with existing 
non-empty file object.

New tests proposed in issue18919 expose all these bugs.

----------
assignee: serhiy.storchaka
components: Library (Lib)
files: sunau.patch
keywords: patch
messages: 197109
nosy: r.david.murray, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Miscellaneous fixes for the sunau module
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file31631/sunau.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18950>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to