summaryrefslogtreecommitdiffstats
path: root/libavformat/brstm.c
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/brstm.c
parent0f6735194459d8be1a07340f544b4f2c8f1fa316 (diff)
downloadffmpeg-streaming-a49154e9d79ae44204072dc1cad74742a8dd63d0.zip
ffmpeg-streaming-a49154e9d79ae44204072dc1cad74742a8dd63d0.tar.gz
avformat/brstm: support little-endian s16 PCM
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/brstm.c')
-rw-r--r--libavformat/brstm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/brstm.c b/libavformat/brstm.c
index 45bdb72..1d190c9 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;
OpenPOWER on IntegriCloud