dcstr: fix division by zero
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 20 Oct 2016 18:13:54 +0000 (20:13 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 26 Nov 2016 23:28:03 +0000 (00:28 +0100)
commitd77684b85305e9dca9d056c50146f43c08268ac2
tree8ae7fc6716fe5b10e585b6375c05c403bed9726f
parent2c52b749801454b041d05f6230abe5a0a3fbfdce
dcstr: fix division by zero

Also check for possible overflows.

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