]> granicus.if.org Git - handbrake/commitdiff
libhb: fix he-aac fallback setup
authorJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 12 Feb 2016 15:25:41 +0000 (08:25 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 12 Feb 2016 15:27:11 +0000 (08:27 -0700)
if there is no he-aac encoder, a fallback to aac was not getting set.

libhb/common.c

index 1b8c0f4b7de09e51acf95af19a7d346f8397f589..cf49a2b7261a43bed0c1f1ad0f22e1716d3e9261 100644 (file)
@@ -590,8 +590,7 @@ void hb_common_global_init()
                     break;
                 }
             }
-            if ((hb_audio_encoders[i].item.codec & HB_ACODEC_MASK) == 0 &&
-                (hb_audio_encoders[i].gid == HB_GID_ACODEC_AAC_HE))
+            if (hb_audio_encoders[i].gid == HB_GID_ACODEC_AAC_HE)
             {
                 // try to find an AAC fallback if no HE-AAC encoder is available
                 for (j = 0; j < hb_audio_encoders_count; j++)