mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
matroskamux: Only mark new clusters as keyframe if they start on a keyframe or we're muxing only audio
Based on a patch by Nicola Murino <nicola.murino@gmail.com> https://bugzilla.gnome.org/show_bug.cgi?id=792775
This commit is contained in:
parent
15ae79838c
commit
80d5c43a81
1 changed files with 2 additions and 1 deletions
|
@ -3752,7 +3752,8 @@ gst_matroska_mux_write_data (GstMatroskaMux * mux, GstMatroskaPad * collect_pad,
|
|||
gst_util_uint64_scale (buffer_timestamp, 1, mux->time_scale));
|
||||
GST_LOG_OBJECT (mux, "cluster timestamp %" G_GUINT64_FORMAT,
|
||||
gst_util_uint64_scale (buffer_timestamp, 1, mux->time_scale));
|
||||
gst_ebml_write_flush_cache (ebml, TRUE, buffer_timestamp);
|
||||
gst_ebml_write_flush_cache (ebml, is_video_keyframe
|
||||
|| is_audio_only, buffer_timestamp);
|
||||
mux->cluster_time = buffer_timestamp;
|
||||
gst_ebml_write_uint (ebml, GST_MATROSKA_ID_PREVSIZE,
|
||||
mux->prev_cluster_size);
|
||||
|
|
Loading…
Reference in a new issue