matroskamux: make default duration check less sensitive
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 6 Sep 2011 13:05:37 +0000 (15:05 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 6 Sep 2011 13:09:13 +0000 (15:09 +0200)
commitaa0ae490d052eee96a56c845b599066aa00855e5
treef291227f3b72284c8d953c6fa8ac36d4416969b7
parent06f8e356a6829e067e81e8c2bf7bac334304a44b
matroskamux: make default duration check less sensitive

Frame duration might vary for 1 usecond, in this case matroskamux
decides to create BLOCKGROUP instead of SIMPLEBLOCK.

Convert duration to timecodescale which is (typically) less precise, and
then also allow the difference of 1/-1 to arrange for less sensitive check.

Based on patch by Alexey Fisher <bug-track@fisher-privat.net>

Fixes #653080.
gst/matroska/matroska-mux.c
gst/matroska/matroska-mux.h