From f34dd3626aaa1a341bfa2e2061dabf1722d4af80 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 14 Mar 2010 12:16:21 +0100 Subject: [PATCH] asfdemux: Make a table static to avoid having to always allocate it. --- gst/asfdemux/asfpacket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/asfdemux/asfpacket.c b/gst/asfdemux/asfpacket.c index 924ede8bf2..2b16a3f602 100644 --- a/gst/asfdemux/asfpacket.c +++ b/gst/asfdemux/asfpacket.c @@ -31,11 +31,11 @@ /* we are unlikely to deal with lengths > 2GB here any time soon, so just * return a signed int and use that for error reporting */ -static gint +static inline gint asf_packet_read_varlen_int (guint lentype_flags, guint lentype_bit_offset, const guint8 ** p_data, guint * p_size) { - const guint lens[4] = { 0, 1, 2, 4 }; + static const guint lens[4] = { 0, 1, 2, 4 }; guint len, val; len = lens[(lentype_flags >> lentype_bit_offset) & 0x03];