Skip to content
Snippets Groups Projects
Commit e17c5206 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h Committed by Sebastian Dröge
Browse files

schroenc: set buffer offset to buffer timestamp

oggmux expects this to order incoming buffers

https://bugzilla.gnome.org/show_bug.cgi?id=722078
parent 9c67a6fd
No related branches found
No related tags found
Loading
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment