summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2019-10-07 08:13:32 +0200
committerJörg Frings-Fürst <debian@jff.email>2019-10-07 08:13:32 +0200
commit5d6c7a8217876d35bc05a11e907aa5c4bdcbb989 (patch)
tree5d24bf7fc12fe7827eeed4fe83652821854b9713 /src
parent2f4c953ef0daacd7a283feaccf75dc7b242318cb (diff)
parent4f0572dc14ff66c4fede4ee87d578acec0cc43df (diff)
Update upstream source from tag 'upstream/3.34.1'
Update to upstream version '3.34.1' with Debian dir cf344a4e3174acb82b5472834a26c561a64d8c2d
Diffstat (limited to 'src')
-rw-r--r--src/libwebpmux.vapi8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libwebpmux.vapi b/src/libwebpmux.vapi
index f2461a2..42d2886 100644
--- a/src/libwebpmux.vapi
+++ b/src/libwebpmux.vapi
@@ -61,9 +61,7 @@ namespace WebP
[CCode (cname = "vala_set_image")]
public MuxError set_image (uint8[] bitstream, bool copy_data)
{
- Data data;
- data.bytes = bitstream;
- data.size = bitstream.length;
+ Data data = { bitstream, bitstream.length };
return _set_image (data, copy_data);
}
@@ -89,9 +87,7 @@ namespace WebP
public MuxError set_chunk (string fourcc, uint8[] chunk_data, bool copy_data)
requires (fourcc.length == 4)
{
- Data data;
- data.bytes = chunk_data;
- data.size = chunk_data.length;
+ Data data = { chunk_data ,chunk_data.length };
return _set_chunk ((uchar[]) fourcc, data, copy_data);
}