1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00
FFmpeg/libavformat
Anssi Hannula 57f2c9aed9 spdifenc: fix byte order on big-endian systems
There is a check for HAVE_BIGENDIAN when outputting the IEC 61937
stream. On big-endian systems the payload data is not byteswapped,
causing in effect the outputted payload data to be in a different byte
order on big-endian than on little-endian systems.

However, the IEC 61937 preamble (and the final odd byte if present) is
always outputted in the same byte order. This means that on big-endian
systems the headers have a different byte order than the payload,
preventing useful use of the output.

Fix that by outputting the data in a format suitable for sending to an
audio device in S16LE format by default. Output as big-endian (S16BE)
is added as an AVOption. This makes the muxer output the same on all
archs by default.

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-02-13 15:16:55 +01:00
..
2010-02-06 12:32:44 +00:00
2011-02-06 20:30:28 -05:00
2011-01-29 23:55:37 +01:00
2010-11-03 20:12:07 +00:00
2011-01-29 23:55:37 +01:00
2011-01-29 23:55:37 +01:00
2010-06-30 15:38:06 +00:00
2009-12-13 20:51:38 +00:00
2011-02-06 16:05:55 -05:00
2010-10-16 13:20:41 +00:00
2010-10-04 19:45:12 +00:00
2011-01-29 23:55:37 +01:00
2011-01-29 23:55:37 +01:00
2011-02-10 14:17:24 +00:00
2011-02-13 01:16:30 +00:00
2011-01-28 22:33:57 +00:00
2011-01-31 16:58:23 +00:00
2011-01-29 23:55:37 +01:00
2011-01-29 23:55:37 +01:00
2010-04-16 12:21:29 +00:00
2011-02-06 20:33:53 -05:00
2010-08-30 21:17:34 +00:00
2010-08-30 21:17:34 +00:00
2011-01-29 23:55:37 +01:00
2011-01-09 02:11:41 +00:00
2010-12-26 01:23:44 +00:00
2010-07-20 14:13:24 +00:00
2010-07-20 14:13:24 +00:00
2011-01-29 23:55:37 +01:00
2010-08-16 14:21:17 +00:00
2011-01-29 23:55:37 +01:00
2010-08-16 14:21:17 +00:00
2011-01-28 15:45:19 +01:00
2011-01-28 15:45:19 +01:00
2011-01-28 15:45:19 +01:00
2010-07-19 11:50:07 +00:00
2010-07-19 11:50:07 +00:00
2011-02-03 01:37:55 +00:00
2011-02-05 20:31:38 -05:00