From: jstebbins Date: Fri, 19 Dec 2014 00:25:10 +0000 (+0000) Subject: json: fix plane size in hb_get_preview_image_json X-Git-Tag: 1.0.0~1689 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a9ee4e27df18461fb9dc731e99702e9eff605e0;p=handbrake json: fix plane size in hb_get_preview_image_json The actual size of the base64 encoded data is the length of the string git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6611 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/hb_json.c b/libhb/hb_json.c index 401607f7b..b25417a60 100644 --- a/libhb/hb_json.c +++ b/libhb/hb_json.c @@ -1269,6 +1269,7 @@ char* hb_get_preview_json(hb_handle_t * h, const char *json_param) av_base64_encode(plane_base64, base64size, image->plane[ii].data, image->plane[ii].size); + base64size = strlen(plane_base64); json_t *plane_dict; plane_dict = json_pack_ex(&error, 0, "{s:o, s:o, s:o, s:o, s:o, s:o}",