From edf2d4db1116457e8f14f4021896b38366434e17 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 7 Apr 2015 18:47:12 +0000 Subject: [PATCH] json: fix audio autopassthru copy_mask and fallback git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7068 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/hb_json.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libhb/hb_json.c b/libhb/hb_json.c index 882a3f76b..a157fa7cb 100644 --- a/libhb/hb_json.c +++ b/libhb/hb_json.c @@ -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); -- 2.40.0