Commit 010b7b30 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMatt Wolenetz <wolenetz@google.com>
Reviewed-by: 's avatarMatt Wolenetz <wolenetz@google.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 06e092e7
...@@ -180,7 +180,7 @@ ogm_packet(AVFormatContext *s, int idx) ...@@ -180,7 +180,7 @@ ogm_packet(AVFormatContext *s, int idx)
os->psize -= lb + 1; os->psize -= lb + 1;
while (lb--) while (lb--)
os->pduration += p[lb+1] << (lb*8); os->pduration += (uint64_t)p[lb+1] << (lb*8);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment