]> git.sesse.net Git - vlc/commitdiff
Fix AAC encoding with ffaac
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 1 Apr 2012 08:58:37 +0000 (10:58 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 1 Apr 2012 09:07:16 +0000 (11:07 +0200)
Should close #6483

modules/codec/avcodec/encoder.c

index 9bd8619b95d353530c2a3de3298ae1f9441b7321..072432946f56d71d67035eece3231707662a8e57 100644 (file)
@@ -382,6 +382,8 @@ int OpenEncoder( vlc_object_t *p_this )
     p_sys->b_trellis = var_GetBool( p_enc, ENC_CFG_PREFIX "trellis" );
 
     p_context->strict_std_compliance = var_GetInteger( p_enc, ENC_CFG_PREFIX "strict" );
+    if( i_codec_id == CODEC_ID_AAC )
+        p_context->strict_std_compliance = -2;
 
     p_sys->f_lumi_masking = var_GetFloat( p_enc, ENC_CFG_PREFIX "lumi-masking" );
     p_sys->f_dark_masking = var_GetFloat( p_enc, ENC_CFG_PREFIX "dark-masking" );