diff options
| author | Michael Forney <mforney@mforney.org> | 2019-07-02 17:26:37 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-07-03 02:43:39 -0700 |
| commit | fe1d9804d24cb1efa8d68d0c7e5b444bb9825389 (patch) | |
| tree | 42dc3ca90a294d31189c3e6f18205f0444590533 /pkg/mpv/patch/0006-video-out-bitmap_packer-Avoid-empty-initializer-list.patch | |
| parent | 9cd9b35cf50287bb8bc851a9524460a8fadd93e3 (diff) | |
mpv: Some portability fixes
Diffstat (limited to 'pkg/mpv/patch/0006-video-out-bitmap_packer-Avoid-empty-initializer-list.patch')
| -rw-r--r-- | pkg/mpv/patch/0006-video-out-bitmap_packer-Avoid-empty-initializer-list.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/mpv/patch/0006-video-out-bitmap_packer-Avoid-empty-initializer-list.patch b/pkg/mpv/patch/0006-video-out-bitmap_packer-Avoid-empty-initializer-list.patch new file mode 100644 index 00000000..93a73242 --- /dev/null +++ b/pkg/mpv/patch/0006-video-out-bitmap_packer-Avoid-empty-initializer-list.patch @@ -0,0 +1,25 @@ +From 8cb378367350e0e54688b279e9b99943c192c029 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Wed, 3 Jul 2019 02:20:12 -0700 +Subject: [PATCH] video/out/bitmap_packer: Avoid empty initializer list + +--- + video/out/bitmap_packer.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/video/out/bitmap_packer.c b/video/out/bitmap_packer.c +index 5169357e3a..921b7331ce 100644 +--- a/video/out/bitmap_packer.c ++++ b/video/out/bitmap_packer.c +@@ -93,7 +93,7 @@ static int pack_rectangles(struct pos *in, struct pos *out, int num_rects, + bins[i] = bins[i << HEIGHT_SORT_BITS] - sizes[i << HEIGHT_SORT_BITS]; + struct { + int size, x, bottom; +- } stack[16] = {{15, 0, h}}, s = {}; ++ } stack[16] = {{15, 0, h}}, s = {0}; + int stackpos = 1; + int y; + while (stackpos) { +-- +2.22.0 + |
