mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
asfdemux: Make a table static to avoid having to always allocate it.
This commit is contained in:
parent
61643c7d89
commit
f34dd3626a
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue