Skip to content

Commit

Permalink
avformat/oggparseogm: Fix undefined shift in ogm_packet()
Browse files Browse the repository at this point in the history
Fixes: shift exponent 48 is too large for 32-bit type 'int'
Fixes: Chromium bug 786793
Reported-by: Matt Wolenetz <[email protected]>
Reviewed-by: Matt Wolenetz <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Mar 10, 2018
1 parent 06e092e commit 010b7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/oggparseogm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 010b7b3

Please sign in to comment.