Mercurial > libavformat.hg
changeset 3989:8b2c1cfecd94 libavformat
10l, fix amrwb sample rate
author | bcoudurier |
---|---|
date | Sat, 04 Oct 2008 23:30:35 +0000 |
parents | edb053f67ffc |
children | 9709530b68b5 |
files | mov.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Sat Oct 04 22:57:56 2008 +0000 +++ b/mov.c Sat Oct 04 23:30:35 2008 +0000 @@ -992,8 +992,10 @@ st->codec->frame_size= sc->samples_per_frame; st->codec->channels= 1; /* really needed */ /* force sample rate for amr, stsd in 3gp does not store sample rate */ - if (st->codec->codec_id != CODEC_ID_QCELP) + if (st->codec->codec_id == CODEC_ID_AMR_NB) st->codec->sample_rate = 8000; + else if (st->codec->codec_id == CODEC_ID_AMR_WB) + st->codec->sample_rate = 16000; break; case CODEC_ID_MP2: case CODEC_ID_MP3: