mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
07c2a82e5d
commit
0d15c8a7a5
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue