Mercurial > libavformat.hg
changeset 817:8e9c4e5d157b libavformat
Yamaha ADPCM in wav patch by (Vidar Madsen: vidarino, gmail com)
author | michael |
---|---|
date | Fri, 15 Jul 2005 09:14:25 +0000 |
parents | 6f41cd797a3d |
children | b1d7ee1c792d |
files | wav.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/wav.c Thu Jul 14 21:39:36 2005 +0000 +++ b/wav.c Fri Jul 15 09:14:25 2005 +0000 @@ -29,6 +29,7 @@ { CODEC_ID_PCM_MULAW, 0x07 }, { CODEC_ID_ADPCM_MS, 0x02 }, { CODEC_ID_ADPCM_IMA_WAV, 0x11 }, + { CODEC_ID_ADPCM_YAMAHA, 0x20 }, { CODEC_ID_ADPCM_G726, 0x45 }, { CODEC_ID_ADPCM_IMA_DK4, 0x61 }, /* rogue format number */ { CODEC_ID_ADPCM_IMA_DK3, 0x62 }, /* rogue format number */ @@ -65,7 +66,7 @@ bps = 8; } else if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3) { bps = 0; - } else if (enc->codec_id == CODEC_ID_ADPCM_IMA_WAV || enc->codec_id == CODEC_ID_ADPCM_MS || enc->codec_id == CODEC_ID_ADPCM_G726) { // + } else if (enc->codec_id == CODEC_ID_ADPCM_IMA_WAV || enc->codec_id == CODEC_ID_ADPCM_MS || enc->codec_id == CODEC_ID_ADPCM_G726 || enc->codec_id == CODEC_ID_ADPCM_YAMAHA) { // bps = 4; } else { bps = 16;