mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
schroenc: set buffer offset to buffer timestamp
oggmux expects this to order incoming buffers https://bugzilla.gnome.org/show_bug.cgi?id=722078
This commit is contained in:
parent
2e9e8b5c62
commit
d1877b0b95
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue