mirror of
https://github.com/mpv-player/mpv
synced 2024-08-04 14:59:58 +02:00
frame-based mpsub parser fix - patch by Rizsanyi Zsolt <rizsanyi@myrealbox.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5829 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a8b78d5149
commit
2bb2db0a65
@ -404,9 +404,9 @@ subtitle *sub_read_line_mpsub(FILE *fd, subtitle *current) {
|
||||
if (!fgets(line, LINE_LEN, fd)) return NULL;
|
||||
} while (sscanf (line, "%f %f", &a, &b) !=2);
|
||||
|
||||
mpsub_position += (a*100.0);
|
||||
mpsub_position += a*(sub_uses_time ? 100.0 : 1.0);
|
||||
current->start=(int) mpsub_position;
|
||||
mpsub_position += (b*100.0);
|
||||
mpsub_position += b*(sub_uses_time ? 100.0 : 1.0);
|
||||
current->end=(int) mpsub_position;
|
||||
|
||||
while (num < SUB_MAX_TEXT) {
|
||||
|
Loading…
Reference in New Issue
Block a user