mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
vtenc: add alignment=au to sink caps
VT compression callback gets a CMSampleBuffer per frame, so vtenc_h264 should set 'alignment=au' in sink caps to indicate this. https://bugzilla.gnome.org/show_bug.cgi?id=750635
This commit is contained in:
parent
376d831178
commit
5db08a8b89
1 changed files with 2 additions and 1 deletions
|
@ -174,7 +174,8 @@ gst_vtenc_base_init (GstVTEncClass * klass)
|
|||
min_fps_n, min_fps_d, max_fps_n, max_fps_d, NULL);
|
||||
if (codec_details->format_id == kCMVideoCodecType_H264) {
|
||||
gst_structure_set (gst_caps_get_structure (src_caps, 0),
|
||||
"stream-format", G_TYPE_STRING, "avc", NULL);
|
||||
"stream-format", G_TYPE_STRING, "avc",
|
||||
"alignment", G_TYPE_STRING, "au", NULL);
|
||||
}
|
||||
src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
|
||||
src_caps);
|
||||
|
|
Loading…
Reference in a new issue