]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
10l, fix amrwb sample rate
authorbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 4 Oct 2008 23:30:35 +0000 (23:30 +0000)
committerbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 4 Oct 2008 23:30:35 +0000 (23:30 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15562 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/mov.c

index ec11a6855e58c278ea72ebe8b506eaf68e7bd7b5..32cb90996b8d696275866a4e980bc3ced67d444d 100644 (file)
@@ -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: