summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-06-21 10:21:20 +0000
committerPaul B Mahol <onemda@gmail.com>2015-06-21 10:32:13 +0000
commita49154e9d79ae44204072dc1cad74742a8dd63d0 (patch)
tree9248792e00c974d9c89f5774d851200578118539 /libavformat
parent0f6735194459d8be1a07340f544b4f2c8f1fa316 (diff)
avformat/brstm: support little-endian s16 PCM
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/brstm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/brstm.c b/libavformat/brstm.c
index 45bdb72867..1d190c9720 100644
--- a/libavformat/brstm.c
+++ b/libavformat/brstm.c
@@ -184,7 +184,9 @@ static int read_header(AVFormatContext *s)
switch (codec) {
case 0: codec = AV_CODEC_ID_PCM_S8_PLANAR; break;
- case 1: codec = AV_CODEC_ID_PCM_S16BE_PLANAR; break;
+ case 1: codec = b->little_endian ?
+ AV_CODEC_ID_PCM_S16LE_PLANAR :
+ AV_CODEC_ID_PCM_S16BE_PLANAR; break;
case 2: codec = b->little_endian ?
AV_CODEC_ID_ADPCM_THP_LE :
AV_CODEC_ID_ADPCM_THP; break;