dvbsubdec: fix division by zero in compute_default_clut
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 8 Nov 2016 21:32:42 +0000 (22:32 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 26 Nov 2016 23:46:34 +0000 (00:46 +0100)
commit2260c0776ac664af2d4b09e177d5f1d6fc7864d7
treeae65f26badba8de6fd235f9e9e9b1a0d9b691304
parent5c55f9881ed032ff83515f4e39216dee97685a5a
dvbsubdec: fix division by zero in compute_default_clut

This problem was introduced in commit
4b90dcb8493552c17a811c8b1e6538dae4061f9d.

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