diff --git a/gst-libs/gst/codecs/gstvp9decoder.c b/gst-libs/gst/codecs/gstvp9decoder.c index 38691924c0..5e3e2cf91c 100644 --- a/gst-libs/gst/codecs/gstvp9decoder.c +++ b/gst-libs/gst/codecs/gstvp9decoder.c @@ -348,6 +348,9 @@ gst_vp9_decoder_handle_frame (GstVideoDecoder * decoder, picture->subsampling_y = priv->parser->subsampling_y; picture->bit_depth = priv->parser->bit_depth; + memcpy (picture->segmentation, priv->parser->segmentation, + sizeof (priv->parser->segmentation)); + if (klass->new_picture) { if (!klass->new_picture (self, frame, picture)) { GST_ERROR_OBJECT (self, "new picture error"); diff --git a/gst-libs/gst/codecs/gstvp9picture.h b/gst-libs/gst/codecs/gstvp9picture.h index 449871b3ff..dc71202769 100644 --- a/gst-libs/gst/codecs/gstvp9picture.h +++ b/gst-libs/gst/codecs/gstvp9picture.h @@ -34,6 +34,7 @@ typedef struct _GstVp9Picture GstVp9Picture; struct _GstVp9Picture { + /*< private >*/ GstMiniObject parent; /* From GstVideoCodecFrame */ @@ -52,6 +53,8 @@ struct _GstVp9Picture gpointer user_data; GDestroyNotify notify; + + GstVp9Segmentation segmentation[GST_VP9_MAX_SEGMENTS]; }; GST_CODECS_API