do not override sample rate for amr nor qcelp, should fix some qcelp files at 16000hz
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 24 Sep 2008 17:09:59 +0000 (17:09 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 24 Sep 2008 17:09:59 +0000 (17:09 +0000)
Originally committed as revision 15397 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mov.c

index 73ed11ddade5c5093865d1f084d6bb2bf7debfd0..7b3a6c975528813434d0a2d78d12451f4d8c9037 100644 (file)
@@ -986,13 +986,11 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
 #endif
     /* no ifdef since parameters are always those */
     case CODEC_ID_AMR_WB:
 #endif
     /* no ifdef since parameters are always those */
     case CODEC_ID_AMR_WB:
-        st->codec->sample_rate= 16000;
         st->codec->channels= 1; /* really needed */
         break;
     case CODEC_ID_QCELP:
     case CODEC_ID_AMR_NB:
         st->codec->frame_size= sc->samples_per_frame;
         st->codec->channels= 1; /* really needed */
         break;
     case CODEC_ID_QCELP:
     case CODEC_ID_AMR_NB:
         st->codec->frame_size= sc->samples_per_frame;
-        st->codec->sample_rate= 8000;
         st->codec->channels= 1; /* really needed */
         break;
     case CODEC_ID_MP2:
         st->codec->channels= 1; /* really needed */
         break;
     case CODEC_ID_MP2: