diff options
author | Matej Knopp <matej.knopp@gmail.com> | 2016-08-17 19:59:17 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-08-22 20:25:03 +0100 |
commit | 26c7ca4c24fdad9b599b7c68adee036e20c07ef1 (patch) | |
tree | c24f175fa446de1a3f50e4343ae5c94ec143ea48 | |
parent | 1d5b32ee91e7f41577f04bbdd8a9a199de887eb0 (diff) |
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
-rw-r--r-- | sys/applemedia/vtdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/applemedia/vtdec.c b/sys/applemedia/vtdec.c index e9c7bdd47..f5a34e5c3 100644 --- a/sys/applemedia/vtdec.c +++ b/sys/applemedia/vtdec.c @@ -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 */ |