1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

avformat/oggparseogm: Fix undefined shift in ogm_packet()

Fixes: shift exponent 48 is too large for 32-bit type 'int'
Fixes: Chromium bug 786793
Reported-by: Matt Wolenetz <wolenetz@google.com>
Reviewed-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 010b7b30b7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2018-03-08 23:14:04 +01:00
parent 4df16ad1ef
commit 46f37c65ab

View File

@ -176,7 +176,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;
}