1
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:
arpi 2002-04-25 12:59:24 +00:00
parent a8b78d5149
commit 2bb2db0a65

View File

@ -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) {