]> granicus.if.org Git - handbrake/commitdiff
json: fix audio autopassthru copy_mask and fallback
authorjstebbins <jstebbins.hb@gmail.com>
Tue, 7 Apr 2015 18:47:12 +0000 (18:47 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Tue, 7 Apr 2015 18:47:12 +0000 (18:47 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7068 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/hb_json.c

index 882a3f76bd6a40d77142a19347c6a49a39d0a1f2..a157fa7cb2a4e770c6bd1e7c59172e9eb8bdf5cb 100644 (file)
@@ -1111,18 +1111,18 @@ hb_job_t* hb_dict_to_job( hb_handle_t * h, hb_dict_t *dict )
                 if (hb_value_type(acodec_copy_mask) == HB_VALUE_TYPE_STRING)
                 {
                     const char *s = hb_value_get_string(value);
-                    job->acodec_fallback |= hb_audio_encoder_get_from_name(s);
+                    job->acodec_copy_mask |= hb_audio_encoder_get_from_name(s);
                 }
                 else
                 {
-                    job->acodec_fallback |= hb_value_get_int(value);
+                    job->acodec_copy_mask |= hb_value_get_int(value);
                 }
             }
         }
         if (hb_value_type(acodec_copy_mask) == HB_VALUE_TYPE_STRING)
         {
             // Split the string at ','
-            char *s = strdup(hb_value_get_string(acodec_fallback));
+            char *s = strdup(hb_value_get_string(acodec_copy_mask));
             char *cur = s;
             while (cur != NULL && cur[0] != 0)
             {
@@ -1132,7 +1132,7 @@ hb_job_t* hb_dict_to_job( hb_handle_t * h, hb_dict_t *dict )
                     *next = 0;
                     next++;
                 }
-                job->acodec_fallback |= hb_audio_encoder_get_from_name(cur);
+                job->acodec_copy_mask |= hb_audio_encoder_get_from_name(cur);
                 cur = next;
             }
             free(s);