mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 18:32:22 +00:00
matroskadec: allows inserting chapters with unspecified end
Originally committed as revision 13242 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f5275b3ce7
commit
ad9d62ef22
@ -2250,8 +2250,12 @@ matroska_parse_chapters(AVFormatContext *s)
|
||||
}
|
||||
}
|
||||
|
||||
if(start != AV_NOPTS_VALUE && end != AV_NOPTS_VALUE)
|
||||
res = ff_new_chapter(s, start * AV_TIME_BASE / 1000000000 , end * AV_TIME_BASE / 1000000000, title ? title : "(unnamed)");
|
||||
if (start != AV_NOPTS_VALUE) {
|
||||
start = start * AV_TIME_BASE / 1000000000;
|
||||
if (end != AV_NOPTS_VALUE)
|
||||
end = end * AV_TIME_BASE / 1000000000;
|
||||
res = ff_new_chapter(s, start, end, title ? title : "(unnamed)");
|
||||
}
|
||||
av_free(title);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user