• Anssi Hannula's avatar
    spdifenc: fix byte order on big-endian systems · af1e8ffd
    Anssi Hannula authored
    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: 's avatarJanne Grunau <janne-ffmpeg@jannau.net>
    (cherry picked from commit 57f2c9ae)
    af1e8ffd
Name
Last commit
Last update
doc Loading commit data...
ffpresets Loading commit data...
libavcodec Loading commit data...
libavcore Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswscale Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
Doxyfile Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
ffserver.h Loading commit data...
subdir.mak Loading commit data...
version.sh Loading commit data...