aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rl.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-08 19:44:02 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-31 10:53:42 +0100
commit1ead0c6388ba7f74ccb0c3e991a49600c92c877e (patch)
treec377c583149988c4dfb01f5a6a2c0a74b639545e /libavcodec/rl.h
parent477dd2df60e6419ad8776a9865c421e8d42f68fe (diff)
downloadffmpeg-1ead0c6388ba7f74ccb0c3e991a49600c92c877e.tar.gz
avcodec/rl: Remove nonstatic storage of RL tables
ff_rl_free() was added in 324e50ee95929a9491b855c5e15451145bd5d1ec, but never used; nonstatic storage was not used long before that. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/rl.h')
-rw-r--r--libavcodec/rl.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/libavcodec/rl.h b/libavcodec/rl.h
index 9a767bc5fd..a83debccf7 100644
--- a/libavcodec/rl.h
+++ b/libavcodec/rl.h
@@ -49,17 +49,12 @@ typedef struct RLTable {
} RLTable;
/**
- * @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
+ * @param static_store static uint8_t array[2][2*MAX_RUN + MAX_LEVEL + 3]
+ * to hold the level and run tables.
*/
-int ff_rl_init(RLTable *rl, uint8_t static_store[2][2*MAX_RUN + MAX_LEVEL + 3]);
+void ff_rl_init(RLTable *rl, uint8_t static_store[2][2*MAX_RUN + MAX_LEVEL + 3]);
void ff_rl_init_vlc(RLTable *rl, unsigned static_size);
-/**
- * Free the contents of a dynamically allocated table.
- */
-void ff_rl_free(RLTable *rl);
-
#define INIT_VLC_RL(rl, static_size)\
{\
int q;\