av1parser: Fix data type of film grain param
authorMengkejiergeli Ba <mengkejiergeli.ba@intel.com>
Mon, 10 Jan 2022 07:24:13 +0000 (15:24 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 12 Jan 2022 11:03:17 +0000 (11:03 +0000)
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>

subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.h

index 45ea905..31f5945 100644 (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;
 };