FFmpeg/libavcodec
Niklas Haas 94653e0dee avcodec/h264dec: fix possible out-of-bounds array access
If slice_type is > 9, the access to ff_h264_golomb_to_pict_type is
out-of-bounds. Fix this by simply setting the slice_type to 0 in this
case.

This is completely inconsequential because the value is only being used
to being used as an offset in the calculation of the film grain seed
value, a corruption of which is practically invisible.

Fixes coverity ticket #1490802

Signed-off-by: James Almer <jamrial@gmail.com>
2021-08-25 00:56:35 -03:00
..
2021-06-02 17:30:24 +02:00
2021-07-22 14:47:57 +02:00
2021-07-08 20:10:01 +02:00
2021-08-18 08:55:56 +02:00
2021-07-22 14:47:57 +02:00
2021-08-10 18:05:13 +02:00
2021-07-22 15:02:30 +02:00
2021-07-22 14:47:57 +02:00
2021-07-22 14:47:57 +02:00
2021-08-06 21:04:43 +02:00
2021-08-05 19:46:33 +02:00
2021-07-08 20:10:17 +02:00
2021-06-08 12:52:49 +02:00
2021-07-22 14:47:57 +02:00
2021-08-02 14:30:52 +02:00
2021-07-08 20:10:17 +02:00
2021-07-22 14:47:57 +02:00
2021-07-22 15:02:30 +02:00
2021-08-18 08:55:56 +02:00
2021-07-22 14:47:57 +02:00
2021-07-22 14:47:57 +02:00
2021-07-22 14:47:57 +02:00