diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2014-01-13 10:01:43 +0000 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2014-01-13 10:02:45 +0000 |
commit | d1877b0b953e5a0a182c2aa6c19cf0911c41fc12 (patch) | |
tree | ae8f2ce097734bcdb963838600c3c34c125c8d63 | |
parent | 2e9e8b5c62adf75b933be28c258c6c718b98e40f (diff) | |
download | gstreamer-plugins-bad-d1877b0b953e5a0a182c2aa6c19cf0911c41fc12.tar.gz |
schroenc: set buffer offset to buffer timestamp
oggmux expects this to order incoming buffers
https://bugzilla.gnome.org/show_bug.cgi?id=722078
-rw-r--r-- | ext/schroedinger/gstschroenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/schroedinger/gstschroenc.c b/ext/schroedinger/gstschroenc.c index 1c3c8d3fe..a584740f7 100644 --- a/ext/schroedinger/gstschroenc.c +++ b/ext/schroedinger/gstschroenc.c @@ -690,6 +690,10 @@ gst_schro_enc_pre_push (GstVideoEncoder * base_video_encoder, } #endif + GST_BUFFER_OFFSET (buf) = gst_util_uint64_scale (schro_enc->last_granulepos, + GST_SECOND * schro_enc->video_format->frame_rate_denominator, + schro_enc->video_format->frame_rate_numerator); + return GST_FLOW_OK; } |