mirror of https://git.ffmpeg.org/ffmpeg.git
let faad init parameters properly, fix many SBR samples
Originally committed as revision 5212 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
99487f42b1
commit
ec04d244b5
|
@ -1134,6 +1134,11 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
|
||||||
if(st->codec->codec_type==CODEC_TYPE_AUDIO && st->codec->sample_rate==0 && sc->time_scale>1) {
|
if(st->codec->codec_type==CODEC_TYPE_AUDIO && st->codec->sample_rate==0 && sc->time_scale>1) {
|
||||||
st->codec->sample_rate= sc->time_scale;
|
st->codec->sample_rate= sc->time_scale;
|
||||||
}
|
}
|
||||||
|
#ifdef CONFIG_FAAD
|
||||||
|
if(st->codec->codec_id ==CODEC_ID_AAC) {
|
||||||
|
st->codec->sample_rate= 0; /* let faad init parameters properly */
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue