Mercurial > libavformat.hg
comparison mov.c @ 1033:a757a0a3824f libavformat
let faad init parameters properly, fix many SBR samples
author | bcoudurier |
---|---|
date | Fri, 24 Mar 2006 17:03:49 +0000 |
parents | 58a0e351ef4c |
children | 49b57ac270f7 |
comparison
equal
deleted
inserted
replaced
1032:58a0e351ef4c | 1033:a757a0a3824f |
---|---|
1132 } | 1132 } |
1133 | 1133 |
1134 if(st->codec->codec_type==CODEC_TYPE_AUDIO && st->codec->sample_rate==0 && sc->time_scale>1) { | 1134 if(st->codec->codec_type==CODEC_TYPE_AUDIO && st->codec->sample_rate==0 && sc->time_scale>1) { |
1135 st->codec->sample_rate= sc->time_scale; | 1135 st->codec->sample_rate= sc->time_scale; |
1136 } | 1136 } |
1137 #ifdef CONFIG_FAAD | |
1138 if(st->codec->codec_id ==CODEC_ID_AAC) { | |
1139 st->codec->sample_rate= 0; /* let faad init parameters properly */ | |
1140 } | |
1141 #endif | |
1137 | 1142 |
1138 return 0; | 1143 return 0; |
1139 } | 1144 } |
1140 | 1145 |
1141 static int mov_read_stsc(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) | 1146 static int mov_read_stsc(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) |