ffmpeg/libavformat
Mark Himsley b7b798a1af 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>
2014-05-31 20:07:52 -04:00
..
2011-11-30 20:34:45 +01:00
2012-01-16 11:29:55 +01:00
2011-11-30 20:34:45 +01:00
2011-12-12 20:21:47 +01:00
2013-06-22 08:51:56 +02:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-12-01 13:47:28 +02:00
2011-11-23 21:43:46 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-08-09 19:56:25 +02:00
2011-05-21 13:48:10 +02:00
2011-11-30 20:34:45 +01:00
2011-11-23 21:43:46 +01:00
2011-11-30 20:34:45 +01:00
2011-11-11 14:07:57 +02:00
2011-11-30 20:34:45 +01:00
2013-03-18 20:24:49 +01:00
2011-12-11 00:32:25 +01:00
2014-05-31 20:07:52 -04:00
2011-10-28 14:54:14 -07:00
2011-11-30 20:34:45 +01:00
2011-12-11 00:32:25 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-23 20:19:26 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-04-19 18:28:38 +02:00
2011-12-11 00:32:25 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-10-28 14:54:14 -07:00
2011-08-09 19:56:25 +02:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2012-03-06 15:28:00 -08:00
2011-12-21 00:00:03 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2013-04-24 21:01:14 +02:00
2013-04-24 21:01:14 +02:00
2011-12-18 16:23:16 +01:00
2011-07-03 21:42:06 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2014-01-07 09:43:58 +01:00
2012-01-03 18:47:42 -05:00
2014-01-07 09:43:57 +01:00
2014-01-07 09:43:58 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2013-10-16 23:05:50 +02:00
2013-10-16 23:05:50 +02:00
2013-10-16 23:05:50 +02:00
2011-10-17 20:40:20 +03:00
2011-12-11 00:32:25 +01:00
2011-11-30 17:39:32 +02:00
2011-04-08 15:59:19 +02:00
2011-12-01 23:19:25 +02:00
2011-10-17 19:57:45 +03:00
2011-11-30 20:34:45 +01:00
2012-01-16 11:29:55 +01:00
2011-11-30 20:34:45 +01:00
2011-05-21 13:48:10 +02:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2012-01-07 09:59:15 -05:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2013-05-07 07:15:26 +02:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2011-11-30 20:34:45 +01:00
2014-01-07 09:43:57 +01:00
2011-11-30 20:34:45 +01:00
2013-01-02 20:34:08 +01:00