changeset 32499:4be4c1ecaa4c

Fix -ac faad with -demuxer lavf.
author reimar
date Sat, 06 Nov 2010 16:05:00 +0000
parents 95cc44996d5d
children 2b6d7ed36156
files libmpcodecs/ad_faad.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_faad.c	Sat Nov 06 15:51:33 2010 +0000
+++ b/libmpcodecs/ad_faad.c	Sat Nov 06 16:05:00 2010 +0000
@@ -96,7 +96,7 @@
     memcpy(sh->codecdata, sh->wf+1, sh->codecdata_len);
     mp_msg(MSGT_DECAUDIO,MSGL_DBG2,"FAAD: codecdata extracted from WAVEFORMATEX\n");
   }
-  if(!sh->codecdata_len) {
+  if(!sh->codecdata_len || sh->format == mmioFOURCC('M', 'P', '4', 'L')) {
     faacDecConfigurationPtr faac_conf;
     /* Set the default object type and samplerate */
     /* This is useful for RAW AAC files */