summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3b34fd6490..5eb258e36d 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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;
}