mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
va: vp8: fix the overflow in _fill_quant_matrix().
The gint8 of qi and qi_base may overflow when calculation the matrix parameters and change the decoding result. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2447>
This commit is contained in:
parent
554855f87f
commit
42ed4c85fc
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ _fill_quant_matrix (GstVp8Decoder * decoder, GstVp8Picture * picture,
|
|||
GstVp8Segmentation *const seg = &parser->segmentation;
|
||||
VAIQMatrixBufferVP8 iq_matrix = { };
|
||||
const gint8 QI_MAX = 127;
|
||||
gint8 qi, qi_base;
|
||||
gint16 qi, qi_base;
|
||||
gint i;
|
||||
|
||||
/* Fill in VAIQMatrixBufferVP8 */
|
||||
|
|
Loading…
Reference in a new issue