mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
vtdec: fix MPEG-2 video caps
Add systemstream=false to caps, otherwise the decoder may be picked for MPEG-PS files. Also parsed=true, as video toolbox expects entire frame in VTDecompressionSessionDecodeFrame. https://bugzilla.gnome.org/show_bug.cgi?id=770049
This commit is contained in:
parent
1d5b32ee91
commit
26c7ca4c24
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@ static GstStaticPadTemplate gst_vtdec_sink_template =
|
|||
GST_PAD_ALWAYS,
|
||||
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")
|
||||
"video/mpeg, mpegversion=2, systemstream=false, parsed=true;"
|
||||
"image/jpeg")
|
||||
);
|
||||
|
||||
/* define EnableHardwareAcceleratedVideoDecoder in < 10.9 */
|
||||
|
|
Loading…
Reference in a new issue