OSDN Git Service

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>
Fri, 21 Oct 2016 17:41:09 +0000 (19:41 +0200)
commitb0a043f51b8cc3b420dc3ceaa38fe9aa344799aa
tree43f277e17f8cf76ed600150cfada83cf964b7050
parent93c39db5f1544d1220488cfeb93bfe812a52f374
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>
libavformat/dcstr.c