summaryrefslogtreecommitdiffstats
path: root/vobsub.c
diff options
context:
space:
mode:
Diffstat (limited to 'vobsub.c')
-rw-r--r--vobsub.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/vobsub.c b/vobsub.c
index 372badd8f6..138cbf0071 100644
--- a/vobsub.c
+++ b/vobsub.c
@@ -769,9 +769,10 @@ vobsub_parse_ifo(const char *const name, unsigned int *palette, unsigned int *wi
{
int res = -1;
FILE *fd = fopen(name, "rb");
- if (fd == NULL)
- perror("Can't open IFO file");
- else {
+ if (fd == NULL) {
+ if (force)
+ perror("Can't open IFO file");
+ } else {
// parse IFO header
unsigned char block[0x800];
const char *const ifo_magic = "DVDVIDEO-VTS";