Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-06-21 13:21:20 +0300
committerPaul B Mahol <onemda@gmail.com>2015-06-21 13:32:13 +0300
commita49154e9d79ae44204072dc1cad74742a8dd63d0 (patch)
tree9248792e00c974d9c89f5774d851200578118539
parent0f6735194459d8be1a07340f544b4f2c8f1fa316 (diff)
avformat/brstm: support little-endian s16 PCM
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-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;