changeset 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 2a4d172f52df
files mov.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Fri Mar 24 16:52:56 2006 +0000
+++ b/mov.c	Fri Mar 24 17:03:49 2006 +0000
@@ -1134,6 +1134,11 @@
     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;
 }