summaryrefslogtreecommitdiff
path: root/libavcodec/rl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/rl.c')
-rw-r--r--libavcodec/rl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/rl.c b/libavcodec/rl.c
index c532b5bf56..93153ff723 100644
--- a/libavcodec/rl.c
+++ b/libavcodec/rl.c
@@ -80,6 +80,9 @@ av_cold void ff_rl_init_vlc(RLTable *rl, unsigned static_size)
int qmul = q * 2;
int qadd = (q - 1) | 1;
+ if (!rl->rl_vlc[q])
+ return;
+
if (q == 0) {
qmul = 1;
qadd = 0;