#40 Endianess problem in audio encoding

open
nobody
None
5
2004-10-07
2004-10-07
Marek Szyprowski
No

I found a nasty bug related to audio encoding, when used
on big-endian (PowerPC) machine.

dv_decode_full_audio() function fill audio buffer in cpu
native byte order, however dv_encode_full_audio()
requires audio buffer to be in little-endian byte-order.

This is the real problem, because such construction as:
dv_decode_full_audio()
do something with audio
dv_encode_full_audio()
is often used in tools for processing DV files (like Kino for
example). In my opinion both functions should work on
buffers in same byte-order.

Regards, Marek Szyprowski <march@staszic.waw.pl>

Discussion