summaryrefslogtreecommitdiff
path: root/libavformat/cdg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/cdg.c')
-rw-r--r--libavformat/cdg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/cdg.c b/libavformat/cdg.c
index 05cac6e528..f933819d57 100644
--- a/libavformat/cdg.c
+++ b/libavformat/cdg.c
@@ -49,7 +49,7 @@ static int read_header(AVFormatContext *s)
if (ret < 0) {
av_log(s, AV_LOG_WARNING, "Cannot calculate duration as file size cannot be determined\n");
} else
- vst->duration = (ret * vst->time_base.den) / (CDG_PACKET_SIZE * 300);
+ vst->duration = (ret * (int64_t)vst->time_base.den) / (CDG_PACKET_SIZE * 300);
return 0;
}