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-03-17 04:38:28 +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-01-22 20:27:05 +01: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
2012-12-04 11:25:46 +00:00
2012-12-04 11:25:46 +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
2012-11-24 15:04:32 +00:00
2012-10-18 00:55:03 +02:00
2012-11-19 10:19:50 +01:00
2013-10-13 20:13:38 +00:00
2013-06-28 09:04:16 +02:00
2013-01-01 19:29:04 +01:00
2013-10-13 20:13:38 +00:00
2012-10-10 15:50:32 +00:00
2012-12-05 20:18:04 +00:00
2013-01-24 15:02:44 +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
2012-12-21 00:18:34 +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
2012-12-05 13:01:22 +00:00
2012-12-05 13:01:22 +00: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-01-07 11:43:20 +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
2012-08-28 22:29:20 +02: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
2012-12-17 13:34:30 +01:00
2013-10-13 20:13:38 +00:00
2013-10-13 20:13:38 +00:00
2012-12-28 21:50:42 +00:00
2012-12-28 21:58:03 +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-04-05 14:30:56 +00:00
2012-10-15 08:12:25 +00:00
2013-08-21 05:51:41 +02:00
2013-10-13 20:13:38 +00:00
2012-11-04 04:46:10 +00:00
2013-10-13 20:13:38 +00:00
2013-01-07 10:08:38 +00:00
2013-02-13 17:36:55 +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