av1parser: Fix data type of film grain param

Fix cb_offset and cr_offset data type from guint8 to guint16. According
to spec, cb_offset and cr_offset are 9 bit long, while guint8 can cause
interger overflow, and thus change to guint16.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1508>
This commit is contained in:
Mengkejiergeli Ba 2022-01-10 15:24:13 +08:00 committed by GStreamer Marge Bot
parent 79ce12416f
commit 5905955cc3

View file

@ -1393,10 +1393,10 @@ struct _GstAV1FilmGrainParams {
guint8 grain_scale_shift;
guint8 cb_mult;
guint8 cb_luma_mult;
guint8 cb_offset;
guint16 cb_offset;
guint8 cr_mult;
guint8 cr_luma_mult;
guint8 cr_offset;
guint16 cr_offset;
gboolean overlap_flag;
gboolean clip_to_restricted_range;
};