From: Matthew Waters Date: Tue, 25 Oct 2022 02:22:30 +0000 (+1100) Subject: vp9parser: initialize subsampling to -1 X-Git-Tag: 1.22.0~658 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f77f27f4c9d2f139ef2d9689f32ed50e9c76688c;p=platform%2Fupstream%2Fgstreamer.git vp9parser: initialize subsampling to -1 The default value of 0 is a valid subsampling value and could be confused with an 'unset' value. Part-of: --- diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstvp9parser.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstvp9parser.c index 33e1f0e..cb82a08 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstvp9parser.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstvp9parser.c @@ -646,6 +646,7 @@ gst_vp9_parser_new (void) return NULL; parser->priv = priv; + parser->subsampling_x = parser->subsampling_y = -1; return parser; }