summaryrefslogtreecommitdiff
path: root/libavcodec/rl.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-03-14 13:19:19 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-03-14 13:19:19 +0000
commit3502a54f597a678a39679d2699a02c9fbba534f8 (patch)
treeec518ed2708e612306cbf47b11b7dc86651fdd43 /libavcodec/rl.h
parentefddbce9d0118ba748fadfdd801b10f141882222 (diff)
kill av_mallocz_static() calls in init_rl()
Originally committed as revision 8402 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rl.h')
-rw-r--r--libavcodec/rl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/rl.h b/libavcodec/rl.h
index adcde604ad..1c2aae25ae 100644
--- a/libavcodec/rl.h
+++ b/libavcodec/rl.h
@@ -20,7 +20,12 @@ typedef struct RLTable {
RL_VLC_ELEM *rl_vlc[32]; ///< decoding only
} RLTable;
-void init_rl(RLTable *rl, int use_static);
+/**
+ *
+ * @param static_store static uint8_t array[2][2*MAX_RUN + MAX_LEVEL + 3] which will hold
+ * the level and run tables, if this is NULL av_malloc() will be used
+ */
+void init_rl(RLTable *rl, uint8_t static_store[2][2*MAX_RUN + MAX_LEVEL + 3]);
void init_vlc_rl(RLTable *rl, int use_static);
static inline int get_rl_index(const RLTable *rl, int last, int run, int level)