summaryrefslogtreecommitdiff
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2013-09-20 22:15:49 -0300
committerMichael Niedermayer <michaelni@gmx.at>2013-09-21 14:33:01 +0200
commit56f17407bc4673dad263982d6fad5ef3ae8c9240 (patch)
tree099a7e1f59da26a57b91e3498ce19643951fbb7d /libavformat/matroskadec.c
parent8ad2465987d31bb818235303c0b02b897cd02133 (diff)
matroska: Add the CueDuration element
Use it only on subtitle CuePoints. With proper demuxer/splitter support this should improve the display of subtitles right after seeking to a given point in the stream. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 2482c6d390..a1b7f56634 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -476,6 +476,7 @@ static EbmlSyntax matroska_index_pos[] = {
{ MATROSKA_ID_CUETRACK, EBML_UINT, 0, offsetof(MatroskaIndexPos,track) },
{ MATROSKA_ID_CUECLUSTERPOSITION, EBML_UINT, 0, offsetof(MatroskaIndexPos,pos) },
{ MATROSKA_ID_CUERELATIVEPOSITION,EBML_NONE },
+ { MATROSKA_ID_CUEDURATION, EBML_NONE },
{ MATROSKA_ID_CUEBLOCKNUMBER, EBML_NONE },
{ 0 }
};