[FFmpeg-devel] [mpeg4video] Fix undefined shift on assumed 8-bit input.
dalecurtis at chromium.org
Sat Nov 18 02:07:42 EET 2017
decode_user_data() attempts to create an integer |build|
value with 8 bits of spacing for 3 components. However
each component is an int32_t, so shifting each component
is undefined for values outside of the 8 bit range.
This patch simply clamps input to 8-bits per component.
Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1251 bytes
Desc: not available
More information about the ffmpeg-devel