]> granicus.if.org Git - handbrake/commitdiff
Bugfix branch: improve reliability of HE-AAC check when doing AAC Passthru.
authorRodeo <tdskywalker@gmail.com>
Fri, 29 Jun 2012 12:24:41 +0000 (12:24 +0000)
committerRodeo <tdskywalker@gmail.com>
Fri, 29 Jun 2012 12:24:41 +0000 (12:24 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.9.x@4790 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/muxmkv.c

index 5debb658d4237314b889db05a51f02bd0864ec19..845841a357f18bfa3cf3299d135826c12f249471 100644 (file)
@@ -286,7 +286,7 @@ static int MKVInit( hb_mux_object_t * m )
         // sample rate
         if ((audio->config.out.codec == HB_ACODEC_CA_HAAC) ||
             (audio->config.out.codec == HB_ACODEC_AAC_PASS &&
-             audio->priv.config.extradata.length == 5))
+             audio->config.in.samples_per_frame > 1024))
         {
             // For HE-AAC, write outputSamplingFreq too
             // samplingFreq is half of outputSamplingFreq