1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-29 16:23:10 +02:00

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
This commit is contained in:
Baptiste Coudurier 2008-09-24 17:09:59 +00:00
parent e774c41cab
commit 26f5e1469f

View File

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