avutil/parseutils: fix some overflows in duration calculations
authorMarton Balint <cus@passwd.hu>
Sun, 30 Sep 2018 20:34:41 +0000 (22:34 +0200)
committerMarton Balint <cus@passwd.hu>
Sun, 7 Oct 2018 18:26:29 +0000 (20:26 +0200)
commit4c777d52b9b1048ba92cab1a658c218c38282d25
tree6a3fda6141cc0ac19d95b8cb1b93854fb2134345
parentd40dc64173a140755f36492a0c20fc41b27d66c3
avutil/parseutils: fix some overflows in duration calculations

Also properly return AVERROR(ERANGE) in case of actual overflows.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavutil/parseutils.c