]> granicus.if.org Git - handbrake/commitdiff
cli: fix audio codec selection when one codec specified on the command line
authorjstebbins <jstebbins.hb@gmail.com>
Sat, 9 May 2015 16:44:14 +0000 (16:44 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Sat, 9 May 2015 16:44:14 +0000 (16:44 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7166 b64f7644-9d1e-0410-96f1-a4d463321fa5

test/test.c

index 36dede1a37560c1a5934322d5842572d4504ca76..a32970e23a73f55a5cb007dbe9548a125a6d1574 100644 (file)
@@ -3740,7 +3740,10 @@ PrepareJob(hb_handle_t *h, hb_title_t *title, hb_dict_t *preset_dict)
                 fprintf(stderr, "Dropping excess audio encoders\n");
             }
         }
-        acodec = hb_audio_encoder_get_default(mux);
+        if (ii != 1)
+        {
+            acodec = hb_audio_encoder_get_default(mux);
+        }
         for (; ii < track_count; ii++)
         {
             // We have fewer inputs than audio tracks, use the