Browse Source

let faad init parameters properly, fix many SBR samples

Originally committed as revision 5212 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Baptiste Coudurier 19 years ago
parent
commit
ec04d244b5
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavformat/mov.c

+ 5
- 0
libavformat/mov.c View File

@@ -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) {
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;
}


Loading…
Cancel
Save