From 26f5e1469f9469ab30e16d6311bdbcbc7e0790cf Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Wed, 24 Sep 2008 17:09:59 +0000 Subject: [PATCH] do not override sample rate for amr nor qcelp, should fix some qcelp files at 16000hz Originally committed as revision 15397 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mov.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 73ed11ddad..7b3a6c9755 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -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: - 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->sample_rate= 8000; st->codec->channels= 1; /* really needed */ break; case CODEC_ID_MP2: