Commit 372d74e2 authored by bcoudurier's avatar bcoudurier

do not override sample rate for amr nor qcelp, should fix some qcelp files at 16000hz

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15397 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7a858172
...@@ -986,13 +986,11 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) ...@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment