OSDN Git Service

Fix issue357
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 24 Feb 2008 01:04:00 +0000 (01:04 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 24 Feb 2008 01:04:00 +0000 (01:04 +0000)
commit58293e57e158cd18a522df42ebc56611f94cae5e
tree3d60026ea5a7da96af6e7a6606338d1e9a3dc34e
parent44de39f93c57f3761a00a85dc459decc3fdc1839
Fix issue357
Do what the spec says, insane or not:
"
Format 0 (uncompressed) and Format 3 (uncompressed little-endian) are similar. Both encode
uncompressed audio samples. For 8-bit samples, the two formats are identical. For 16-bit
samples, the two formats differ in byte ordering. In Format 0, 16-bit samples are encoded and
decoded according to the native byte ordering of the platform on which the encoder and Flash
Player, respectively, are running. In Format 3, 16-bit samples are always encoded in little-endian
order (least significant byte first), and are byte-swapped if necessary in Flash Player before
playback. Format 0 is clearly disadvantageous because it introduces a playback platform
dependency. For 16-bit samples, Format 3 is highly preferable to Format 0 for SWF version 4
or later.
"

Originally committed as revision 12184 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/flvdec.c