Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2014-06-06 14:20:03 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2014-06-11 19:53:39 +0400
commit236b9be7dbc5d92c1fee483684624666323df078 (patch)
tree44f5b2e9738f5e2f1a9e2833b98a51dbb054377f
parent472c37fdb0771a8c24afd360548a1ec9fe6ab672 (diff)
matroskadec_haali: ensure chapter end time is validmpc-hc-1.7.5-5lav0.62
-rw-r--r--libavformat/matroskadec_haali.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec_haali.c b/libavformat/matroskadec_haali.c
index 43020ce3f9..9952c45caa 100644
--- a/libavformat/matroskadec_haali.c
+++ b/libavformat/matroskadec_haali.c
@@ -545,7 +545,7 @@ static void mkv_process_chapter(AVFormatContext *s, Chapter *chapter, int level,
{
unsigned i;
if (chapter->UID && chapter->Enabled && !chapter->Hidden) {
- AVChapter *avchap = avpriv_new_chapter(s, s->nb_chapters, (AVRational){1, 1000000000}, chapter->Start - offset, chapter->End - offset, chapter->Display ? chapter->Display->String : NULL);
+ AVChapter *avchap = avpriv_new_chapter(s, s->nb_chapters, (AVRational){1, 1000000000}, chapter->Start - offset, (chapter->End >= chapter->Start) ? chapter->End - offset : AV_NOPTS_VALUE, chapter->Display ? chapter->Display->String : NULL);
if (level > 0 && chapter->Display && chapter->Display->String) {
char *title = (char *)av_mallocz(level + strlen(chapter->Display->String) + 2);