[libdvdnav-devel] [Git][videolan/libdvdread][master] Invalidate cache when forcing filesize

Jean-Baptiste Kempf gitlab at videolan.org
Wed Jan 9 17:11:43 CET 2019


Jean-Baptiste Kempf pushed to branch master at VideoLAN / libdvdread


Commits:
978c6275 by Thomas Guillem at 2019-01-08T15:01:54Z
Invalidate cache when forcing filesize

This fixes playback of Resident Evil Extention DVD.

- - - - -


1 changed file:

- src/dvd_reader.c


Changes:

=====================================
src/dvd_reader.c
=====================================
@@ -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");
     }
   }



View it on GitLab: https://code.videolan.org/videolan/libdvdread/commit/978c6275c004db5485fb7ffde2508b89cc45c7f7

-- 
View it on GitLab: https://code.videolan.org/videolan/libdvdread/commit/978c6275c004db5485fb7ffde2508b89cc45c7f7
You're receiving this email because of your account on code.videolan.org.


More information about the libdvdnav-devel mailing list