From 0d15c8a7a59e11ef3c83fcc9363f074b7882997f Mon Sep 17 00:00:00 2001 From: Arnaud Vrac Date: Thu, 13 Dec 2012 11:47:57 +0100 Subject: [PATCH] mpeg4videoparse: export number of sprite warping points in caps This allows filtering out videos for hardware decoders that do not support GMC at all or only support a limited number of sprite warping points (usually 1). --- gst/videoparsers/gstmpeg4videoparse.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/videoparsers/gstmpeg4videoparse.c b/gst/videoparsers/gstmpeg4videoparse.c index 92bfd29..ca38a37 100644 --- a/gst/videoparsers/gstmpeg4videoparse.c +++ b/gst/videoparsers/gstmpeg4videoparse.c @@ -621,6 +621,10 @@ gst_mpeg4vparse_update_src_caps (GstMpeg4VParse * mp4vparse) mp4vparse->vol.par_height, NULL); } + if (mp4vparse->vol.sprite_enable != GST_MPEG4_SPRITE_UNUSED) + gst_caps_set_simple (caps, "sprite-warping-points", G_TYPE_INT, + mp4vparse->vol.no_of_sprite_warping_points, NULL); + gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (mp4vparse), caps); gst_caps_unref (caps); -- 2.7.4