mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
applemedia: vtdec: fix mpeg2 video support
This commit is contained in:
parent
938ce6a23d
commit
839970e07c
1 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ static GstStaticPadTemplate gst_vtdec_sink_template =
|
|||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("video/x-h264, stream-format=avc, alignment=au;"
|
||||
"video/mpeg;" "image/jpeg")
|
||||
"video/mpeg, mpegversion=2;" "image/jpeg")
|
||||
);
|
||||
|
||||
#ifdef HAVE_IOS
|
||||
|
@ -197,7 +197,7 @@ gst_vtdec_set_format (GstVideoDecoder * decoder, GstVideoCodecState * state)
|
|||
cm_format = kCMVideoCodecType_H264;
|
||||
vtdec->reorder_queue_frame_delay = 16;
|
||||
} else if (!strcmp (caps_name, "video/mpeg")) {
|
||||
cm_format = kCMVideoCodecType_MPEG4Video;
|
||||
cm_format = kCMVideoCodecType_MPEG2Video;
|
||||
} else if (!strcmp (caps_name, "image/jpeg")) {
|
||||
cm_format = kCMVideoCodecType_JPEG;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue