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:38:58 +0000 (00:38 +0100)
commite8ab2bd2ac85ad0b1013f247d35032b7cd7f771e
tree774f1dbd503b56a399eba436e81fccca14e644b0
parent45b18fbb9a7729c91d69d6359a782a0135b5f2b8
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