applemedia: fix stream-format caps used for H.264
The stream-format's "avc-sample" member is now called just "avc".
This commit is contained in:
parent
b873920eaa
commit
50c6e05924
@ -84,7 +84,7 @@ gst_vtdec_base_init (GstVTDecClass * klass)
|
|||||||
min_fps_n, min_fps_d, max_fps_n, max_fps_d, NULL);
|
min_fps_n, min_fps_d, max_fps_n, max_fps_d, NULL);
|
||||||
if (codec_details->format_id == kVTFormatH264) {
|
if (codec_details->format_id == kVTFormatH264) {
|
||||||
gst_structure_set (gst_caps_get_structure (sink_caps, 0),
|
gst_structure_set (gst_caps_get_structure (sink_caps, 0),
|
||||||
"stream-format", G_TYPE_STRING, "avc-sample", NULL);
|
"stream-format", G_TYPE_STRING, "avc", NULL);
|
||||||
}
|
}
|
||||||
sink_template = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
|
sink_template = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
|
||||||
sink_caps);
|
sink_caps);
|
||||||
|
@ -126,7 +126,7 @@ gst_vtenc_base_init (GstVTEncClass * klass)
|
|||||||
min_fps_n, min_fps_d, max_fps_n, max_fps_d, NULL);
|
min_fps_n, min_fps_d, max_fps_n, max_fps_d, NULL);
|
||||||
if (codec_details->format_id == kVTFormatH264) {
|
if (codec_details->format_id == kVTFormatH264) {
|
||||||
gst_structure_set (gst_caps_get_structure (src_caps, 0),
|
gst_structure_set (gst_caps_get_structure (src_caps, 0),
|
||||||
"stream-format", G_TYPE_STRING, "avc-sample", NULL);
|
"stream-format", G_TYPE_STRING, "avc", NULL);
|
||||||
}
|
}
|
||||||
src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
|
src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
|
||||||
src_caps);
|
src_caps);
|
||||||
|
@ -50,7 +50,7 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
|||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("video/x-h264, "
|
GST_STATIC_CAPS ("video/x-h264, "
|
||||||
"stream-format = (string) { byte-stream, avc-sample }")
|
"stream-format = (string) { byte-stream, avc }")
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstStaticPadTemplate vth264decbin_src_template =
|
static GstStaticPadTemplate vth264decbin_src_template =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user