mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
matroskademux: handle blocks with duration=0
Some video frames, for example alt-ref frame in VP8, will be never displayed. This is why it has duration=0. This patch allow to use this duration. Bug: 654175 Signed-off-by: Alexey Fisher <bug-track@fisher-privat.net>
This commit is contained in:
parent
4dcc9ee42a
commit
a2e0bda3b5
1 changed files with 2 additions and 2 deletions
|
@ -2961,7 +2961,7 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
|
|||
GstFlowReturn ret = GST_FLOW_OK;
|
||||
gboolean readblock = FALSE;
|
||||
guint32 id;
|
||||
guint64 block_duration = 0;
|
||||
guint64 block_duration = -1;
|
||||
GstBuffer *buf = NULL;
|
||||
gint stream_num = -1, n, laces = 0;
|
||||
guint size = 0;
|
||||
|
@ -3249,7 +3249,7 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
|
|||
demux->need_newsegment = FALSE;
|
||||
}
|
||||
|
||||
if (block_duration) {
|
||||
if (block_duration != -1) {
|
||||
if (stream->timecodescale == 1.0)
|
||||
duration = gst_util_uint64_scale (block_duration,
|
||||
demux->common.time_scale, 1);
|
||||
|
|
Loading…
Reference in a new issue