summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-03-12 12:24:13 -0600
committerJohn Stebbins <[email protected]>2019-03-12 12:24:13 -0600
commit1709d8043ef33015f47b4f986d2d603977238856 (patch)
treea32223d9e251536af13cf67be5d10818c9cc204e /libhb/hb.c
parent83d613bde7fbd6f5d5da82664b2bb826294caedc (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.c2
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;
}