mirror of https://github.com/mpv-player/mpv
forgot to commit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4787 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
bc957f1d37
commit
49a76c3a0d
6
vobsub.c
6
vobsub.c
|
@ -606,7 +606,7 @@ vobsub_open(const char *const name)
|
||||||
strcat(buf, ".ifo");
|
strcat(buf, ".ifo");
|
||||||
fd = fopen(buf, "rb");
|
fd = fopen(buf, "rb");
|
||||||
if (fd == NULL)
|
if (fd == NULL)
|
||||||
perror("Can't open IFO file");
|
perror("VobSub: Can't open IFO file");
|
||||||
else {
|
else {
|
||||||
// parse IFO header
|
// parse IFO header
|
||||||
unsigned char block[0x800];
|
unsigned char block[0x800];
|
||||||
|
@ -661,7 +661,7 @@ vobsub_open(const char *const name)
|
||||||
strcat(buf, ".idx");
|
strcat(buf, ".idx");
|
||||||
fd = fopen(buf, "rb");
|
fd = fopen(buf, "rb");
|
||||||
if (fd == NULL)
|
if (fd == NULL)
|
||||||
perror("Can't open IDX file");
|
perror("VobSub: Can't open IDX file");
|
||||||
else {
|
else {
|
||||||
while (vobsub_parse_one_line(vob, fd) >= 0)
|
while (vobsub_parse_one_line(vob, fd) >= 0)
|
||||||
/* NOOP */ ;
|
/* NOOP */ ;
|
||||||
|
@ -673,7 +673,7 @@ vobsub_open(const char *const name)
|
||||||
strcat(buf, ".sub");
|
strcat(buf, ".sub");
|
||||||
mpg = mpeg_open(buf);
|
mpg = mpeg_open(buf);
|
||||||
if (mpg == NULL)
|
if (mpg == NULL)
|
||||||
perror("Can't open SUB file");
|
perror("VobSub: Can't open SUB file");
|
||||||
else {
|
else {
|
||||||
long last_pts_diff = 0;
|
long last_pts_diff = 0;
|
||||||
while (!mpeg_eof(mpg)) {
|
while (!mpeg_eof(mpg)) {
|
||||||
|
|
Loading…
Reference in New Issue