summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-08-10 17:35:36 +0000
committerjstebbins <[email protected]>2015-08-10 17:35:36 +0000
commit877520bd5e69d716d7916a50489d509f22f9efdc (patch)
tree2eabd715a090279c320f8bbae837a93325289f92
parentac9f0b5f83c2915b4d1260726b8867cc5789fab4 (diff)
json: fix parsing job Audio->CopyMask
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7397 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/hb_json.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libhb/hb_json.c b/libhb/hb_json.c
index 21089e219..a9d104b90 100644
--- a/libhb/hb_json.c
+++ b/libhb/hb_json.c
@@ -815,7 +815,8 @@ hb_job_t* hb_dict_to_job( hb_handle_t * h, hb_dict_t *dict )
hb_value_array_t *audio_list = NULL;
hb_value_array_t *subtitle_list = NULL;
hb_value_array_t *filter_list = NULL;
- hb_value_t *mux = NULL, *vcodec = NULL, *acodec_copy_mask, *acodec_fallback;
+ hb_value_t *mux = NULL, *vcodec = NULL;
+ hb_value_t *acodec_copy_mask = NULL, *acodec_fallback = NULL;
char *destfile = NULL;
char *range_type = NULL;
char *video_preset = NULL, *video_tune = NULL;
@@ -1112,7 +1113,7 @@ hb_job_t* hb_dict_to_job( hb_handle_t * h, hb_dict_t *dict )
for (ii = 0; ii < count; ii++)
{
hb_value_t *value = hb_value_array_get(acodec_copy_mask, ii);
- if (hb_value_type(acodec_copy_mask) == HB_VALUE_TYPE_STRING)
+ if (hb_value_type(value) == HB_VALUE_TYPE_STRING)
{
const char *s = hb_value_get_string(value);
job->acodec_copy_mask |= hb_audio_encoder_get_from_name(s);