Skip to content
Snippets Groups Projects
Commit 4dc0110b authored by Arnaud Vrac's avatar Arnaud Vrac Committed by Sebastian Dröge
Browse files

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).
parent ac97f9c8
No related branches found
No related tags found
No related merge requests found
......@@ -615,6 +615,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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment