escape124: reject codebook size 0
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 8 Nov 2016 23:38:50 +0000 (00:38 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 26 Nov 2016 23:28:05 +0000 (00:28 +0100)
commit1499f65ad42a4f4519f27a7d3b01c55146ce2ad0
treeece35815766d1d7175f215296da38f93d7871321
parent6a7f0585ab195bb90ed2d3938633c4cd5fe4bc09
escape124: reject codebook size 0

It causes a cb_depth of 32, leading to assertion failures in get_bits.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 226d35c84591f1901c2a13819031549909faa1f5)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/escape124.c