diff options
author | jstebbins <[email protected]> | 2014-12-19 00:25:10 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-12-19 00:25:10 +0000 |
commit | 6a9ee4e27df18461fb9dc731e99702e9eff605e0 (patch) | |
tree | b64d966ef16228f849f5d0de87479721d9d6f523 /libhb/hb_json.c | |
parent | bafa57c12cc62acc8370331b2b254ea8b51725fa (diff) |
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
Diffstat (limited to 'libhb/hb_json.c')
-rw-r--r-- | libhb/hb_json.c | 1 |
1 files changed, 1 insertions, 0 deletions
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}", |