mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
vtdec: Require width and height field for H264
This decoder does not work if width and height field are not set in the sinkpad caps. Let's make this explicit by adding them to the template caps. https://bugzilla.gnome.org/show_bug.cgi?id=749655
This commit is contained in:
parent
742dba0c2a
commit
4cca6efda8
1 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,8 @@ static GstStaticPadTemplate gst_vtdec_sink_template =
|
|||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("video/x-h264, stream-format=avc, alignment=au;"
|
||||
GST_STATIC_CAPS ("video/x-h264, stream-format=avc, alignment=au,"
|
||||
" width=(int)[1, MAX], height=(int)[1, MAX];"
|
||||
"video/mpeg, mpegversion=2;" "image/jpeg")
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue