diff --git a/libavformat/oggparseogm.c b/libavformat/oggparseogm.c index ca6b62669d5a5..4b4edf26ca36f 100644 --- a/libavformat/oggparseogm.c +++ b/libavformat/oggparseogm.c @@ -180,7 +180,7 @@ ogm_packet(AVFormatContext *s, int idx) os->psize -= lb + 1; while (lb--) - os->pduration += p[lb+1] << (lb*8); + os->pduration += (uint64_t)p[lb+1] << (lb*8); return 0; }