FFmpeg/libavformat
Mark Himsley 8b3964ecd1 avformat/isom: lpcm in mov default to big endian
It is my understanding that "Unless otherwise stated, all data in a
QuickTime movie is stored in big-endian byte ordering" [1] in MOV files.

I have a couple of thousand files, which technically are invalid because
their sound sample description element 4CC is 'lpcm' but its version is
0 - and "Version 0 supports only uncompressed audio in raw ('raw ') or
twos-complement ('twos') format" [2]

Because isom.c only contains a mapping for 4CC 'lpcm' to
AV_CODEC_ID_PCM_S16LE, these files have their audio decoded as LE when
it is actually BE.

This commit adds AV_CODEC_ID_PCM_S16BE as the first match for 4CC 'lpcm'.

[1]
https://developer.apple.com/library/mac/documentation/quicktime/QTFF/qtff.pdf
page 21
[2]
https://developer.apple.com/library/mac/documentation/quicktime/QTFF/qtff.pdf
page 178

Reviewed-by: Yusuke Nakamura <muken.the.vfrmaniac@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-01 19:46:02 +01:00
..
2013-05-10 16:10:52 -03:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2013-10-18 19:53:47 +02:00
2013-10-18 19:53:47 +02:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2013-10-12 20:21:38 +00:00
2013-10-13 20:13:38 +00:00
2013-10-06 19:36:53 +02:00
2013-10-13 20:13:38 +00:00
2013-06-28 09:04:16 +02:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2013-10-28 23:54:42 +01:00
2013-10-31 01:42:13 +01:00
2013-10-13 20:13:38 +00:00
2013-06-20 21:49:02 +02:00
2013-09-18 14:10:05 -04:00
2013-09-21 15:36:33 +02:00
2013-05-24 15:36:54 +02:00
2013-07-02 18:52:45 +02:00
2013-10-13 20:13:38 +00:00
2013-09-21 03:26:54 +02:00
2013-10-31 20:20:49 +01:00
2013-07-07 18:50:03 +02:00
2013-10-31 20:20:32 +01:00
2013-10-23 11:17:03 +03:00
2013-09-21 15:36:33 +02:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2013-10-31 20:20:57 +01:00
2013-10-13 20:13:38 +00:00
2013-10-22 17:09:56 +01:00
2013-10-22 17:09:56 +01:00
2013-10-22 17:09:56 +01:00
2013-10-22 17:09:56 +01:00
2013-10-13 20:13:38 +00:00
2013-09-21 15:36:33 +02:00
2013-10-13 20:13:38 +00:00
2013-05-01 11:56:34 +02:00
2013-10-13 20:13:38 +00:00
2013-10-14 16:29:58 +02:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2013-10-25 19:14:36 +02:00
2013-10-13 20:13:38 +00:00
2013-09-21 15:36:33 +02:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2013-05-26 15:48:50 +02:00
2013-08-05 10:14:42 +02:00
2013-10-21 17:32:01 +02:00
2013-10-31 02:26:07 +01:00
2013-10-13 20:13:38 +00:00
2013-08-21 05:51:41 +02:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2013-05-29 18:14:43 +00:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2013-09-21 15:36:33 +02:00