diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-10-04 23:30:35 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-10-04 23:30:35 +0000 |
commit | 5b9ce252a9c4f512948a586bd3854ee7c0c67632 (patch) | |
tree | fe13e67ba93b5c165519f2f11de6187055638101 | |
parent | b7f4e76d3d8779ad389eb17c21c74c4a5e864934 (diff) | |
download | ffmpeg-5b9ce252a9c4f512948a586bd3854ee7c0c67632.tar.gz |
10l, fix amrwb sample rate
Originally committed as revision 15562 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mov.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index ec11a6855e..32cb90996b 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -992,8 +992,10 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) 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: |