Commit 978c6275 authored by Thomas Guillem's avatar Thomas Guillem

Invalidate cache when forcing filesize

This fixes playback of Resident Evil Extention DVD.
parent 30e4a6e2
Pipeline #3865 passed with stage
in 2 minutes and 38 seconds
......@@ -1332,6 +1332,8 @@ int DVDFileSeekForce(dvd_file_t *dvd_file, int offset, int force_size)
force_size = (offset - 1) / DVD_VIDEO_LB_LEN + 1;
if( dvd_file->filesize < force_size ) {
dvd_file->filesize = force_size;
free(dvd_file->cache);
dvd_file->cache = NULL;
fprintf(stderr, "libdvdread: Ignored size of file indicated in UDF.\n");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment