Fixes CID700562-7 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Unified · Split
| @@ -1015,8 +1015,8 @@ static int ass_get_duration(const uint8_t *p) · 1014 unmodified lines | |||
| 1015 | if (sscanf(p, "%*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d", | 1015 | if (sscanf(p, "%*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d", |
| 1016 | &sh, &sm, &ss, &sc, &eh, &em, &es, &ec) != 8) | 1016 | &sh, &sm, &ss, &sc, &eh, &em, &es, &ec) != 8) |
| 1017 | return 0; | 1017 | return 0; |
| 1018 | start = 3600000*sh + 60000*sm + 1000*ss + 10*sc; | 1018 | start = 3600000LL*sh + 60000LL*sm + 1000LL*ss + 10LL*sc; |
| 1019 | end = 3600000*eh + 60000*em + 1000*es + 10*ec; | 1019 | end = 3600000LL*eh + 60000LL*em + 1000LL*es + 10LL*ec; |
| 1020 | return end - start; | 1020 | return end - start; |
| 1021 | } | 1021 | } |
| 1022 | 1022 | ||