diff options
author | John Stebbins <[email protected]> | 2019-03-12 12:24:13 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-03-12 12:24:13 -0600 |
commit | 1709d8043ef33015f47b4f986d2d603977238856 (patch) | |
tree | a32223d9e251536af13cf67be5d10818c9cc204e /libhb/hb.c | |
parent | 83d613bde7fbd6f5d5da82664b2bb826294caedc (diff) |
fix spurious libswscale warning
These messages only appear rarely, but they annoy.
It's complaining about an uninitialized unused plane
Diffstat (limited to 'libhb/hb.c')
-rw-r--r-- | libhb/hb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index ace58b849..c4ce54721 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -145,10 +145,12 @@ int hb_picture_crop(uint8_t *data[], int stride[], hb_buffer_t *buf, (left >> x_shift); data[2] = buf->plane[2].data + (top >> y_shift) * buf->plane[2].stride + (left >> x_shift); + data[3] = NULL; stride[0] = buf->plane[0].stride; stride[1] = buf->plane[1].stride; stride[2] = buf->plane[2].stride; + stride[3] = 0; return 0; } |