mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-03 02:33:53 +00:00
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:
parent
79ce12416f
commit
5905955cc3
1 changed files with 2 additions and 2 deletions
|
@ -1393,10 +1393,10 @@ struct _GstAV1FilmGrainParams {
|
||||||
guint8 grain_scale_shift;
|
guint8 grain_scale_shift;
|
||||||
guint8 cb_mult;
|
guint8 cb_mult;
|
||||||
guint8 cb_luma_mult;
|
guint8 cb_luma_mult;
|
||||||
guint8 cb_offset;
|
guint16 cb_offset;
|
||||||
guint8 cr_mult;
|
guint8 cr_mult;
|
||||||
guint8 cr_luma_mult;
|
guint8 cr_luma_mult;
|
||||||
guint8 cr_offset;
|
guint16 cr_offset;
|
||||||
gboolean overlap_flag;
|
gboolean overlap_flag;
|
||||||
gboolean clip_to_restricted_range;
|
gboolean clip_to_restricted_range;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue