vp9parser: initialize subsampling to -1
authorMatthew Waters <matthew@centricular.com>
Tue, 25 Oct 2022 02:22:30 +0000 (13:22 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 28 Oct 2022 00:06:07 +0000 (00:06 +0000)
The default value of 0 is a valid subsampling value and could be
confused with an 'unset' value.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3260>

subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstvp9parser.c

index 33e1f0e..cb82a08 100644 (file)
@@ -646,6 +646,7 @@ gst_vp9_parser_new (void)
     return NULL;
 
   parser->priv = priv;
+  parser->subsampling_x = parser->subsampling_y = -1;
 
   return parser;
 }