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:
161b89d
)
[MOVED FROM BAD 060/134] vp8enc: Readd setting of granulepos
author
David Schleef
<ds@schleef.org>
Wed, 1 Dec 2010 02:43:24 +0000
(18:43 -0800)
committer
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Sun, 16 Sep 2012 13:27:14 +0000
(15:27 +0200)
Revert parts of last patch that removed setting of granulepos.
oggmux still requires correct granulepos in incoming packet.
ext/vp8/gstvp8enc.c
patch
|
blob
|
history
diff --git
a/ext/vp8/gstvp8enc.c
b/ext/vp8/gstvp8enc.c
index
1253a39
..
b705102
100644
(file)
--- a/
ext/vp8/gstvp8enc.c
+++ b/
ext/vp8/gstvp8enc.c
@@
-961,6
+961,13
@@
gst_vp8_enc_shape_output (GstBaseVideoEncoder * base_video_encoder,
encoder->keyframe_distance++;
}
+ GST_BUFFER_OFFSET_END (buf) =
+ _to_granulepos (frame->presentation_frame_number + 1, 0,
+ encoder->keyframe_distance);
+ GST_BUFFER_OFFSET (buf) =
+ gst_util_uint64_scale (frame->presentation_frame_number + 1,
+ GST_SECOND * state->fps_d, state->fps_n);
+
ret = gst_pad_push (GST_BASE_VIDEO_CODEC_SRC_PAD (base_video_encoder), buf);
if (ret != GST_FLOW_OK) {
GST_WARNING_OBJECT (encoder, "flow error %d", ret);