avcodec: add 64-bit signed pcm codec
This commit is contained in:
parent
9876d8fc6d
commit
fc600eff63
9 changed files with 40 additions and 5 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue