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).
This commit is contained in:
Arnaud Vrac 2012-12-13 11:47:57 +01:00 committed by Sebastian Dröge
parent 07c2a82e5d
commit 0d15c8a7a5

View file

@ -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);