projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
376d831
)
vtenc: add alignment=au to sink caps
author
Ilya Konstantinov
<ilya.konstantinov@gmail.com>
Tue, 9 Jun 2015 21:16:27 +0000
(
00:16
+0300)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 10 Jun 2015 08:20:44 +0000
(10:20 +0200)
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
sys/applemedia/vtenc.c
patch
|
blob
|
history
diff --git
a/sys/applemedia/vtenc.c
b/sys/applemedia/vtenc.c
index 100db54293350b91eb53e37afabcf4029e0c783c..5c926ab3882dc85c3a653ae4893f2466cb03df0e 100644
(file)
--- a/
sys/applemedia/vtenc.c
+++ b/
sys/applemedia/vtenc.c
@@
-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);