aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-08-17 19:46:21 +0200
committerPaul B Mahol <onemda@gmail.com>2016-08-18 15:30:05 +0200
commitfc600eff630faebda980b7d6fcf02569ebd3bb11 (patch)
treeb063be79da4efc0e58272b550cc41b9655ebaa23 /libavformat
parent9876d8fc6d2b77d5aa31a4b748241b9ebb797167 (diff)
downloadffmpeg-fc600eff630faebda980b7d6fcf02569ebd3bb11.tar.gz
avcodec: add 64-bit signed pcm codec
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/riff.c1
-rw-r--r--libavformat/utils.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 2d54922503..5cef7a9799 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -436,6 +436,7 @@ const AVCodecTag ff_codec_wav_tags[] = {
{ AV_CODEC_ID_PCM_U8, 0x0001 },
{ AV_CODEC_ID_PCM_S24LE, 0x0001 },
{ AV_CODEC_ID_PCM_S32LE, 0x0001 },
+ { AV_CODEC_ID_PCM_S64LE, 0x0001 },
{ AV_CODEC_ID_ADPCM_MS, 0x0002 },
{ AV_CODEC_ID_PCM_F32LE, 0x0003 },
/* must come after f32le in this list */
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 47cb7dd733..dd9df9294a 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2991,6 +2991,8 @@ enum AVCodecID ff_get_pcm_codec_id(int bps, int flt, int be, int sflags)
return be ? AV_CODEC_ID_PCM_S24BE : AV_CODEC_ID_PCM_S24LE;
case 4:
return be ? AV_CODEC_ID_PCM_S32BE : AV_CODEC_ID_PCM_S32LE;
+ case 8:
+ return be ? AV_CODEC_ID_PCM_S64BE : AV_CODEC_ID_PCM_S64LE;
default:
return AV_CODEC_ID_NONE;
}