Skip to content

Commit 5c071fa

Browse files
committed
The _comp_data() function never worked, it contained a reference to
undefined 'nframes'. Should be self._nframes. (Andrew Dalke & kjpylint)
1 parent f8fd11d commit 5c071fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/aifc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ def _comp_data(self, data):
811811
import cl
812812
dum = self._comp.SetParam(cl.FRAME_BUFFER_SIZE, len(data))
813813
dum = self._comp.SetParam(cl.COMPRESSED_BUFFER_SIZE, len(data))
814-
return self._comp.Compress(nframes, data)
814+
return self._comp.Compress(self._nframes, data)
815815

816816
def _lin2ulaw(self, data):
817817
import audioop

0 commit comments

Comments
 (0)