1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-03 14:32:16 +02:00
FFmpeg/libavcodec
Dale Curtis 7010dd98b5 Fix undefined shift on assumed 8-bit input.
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
and prints out a warning that the values were clamped.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-11-21 03:13:03 +01:00
..
2017-11-12 16:00:27 +00:00
2017-11-09 19:49:32 +01:00
2017-11-10 22:48:53 +01:00
2017-11-20 16:02:44 -08:00
2017-11-20 16:02:50 -08:00
2017-11-20 16:02:55 -08:00
2017-11-11 20:33:45 -03:00
2017-11-11 20:33:45 -03:00
2017-11-14 19:40:01 -08:00
2017-11-13 20:33:10 +01:00