Skip to content
Browse files

libdvdread: fix compilation for ifo_read.c

  • Loading branch information...
1 parent b1ff37e commit 429990315a0c0ee4628f3440b6143275d910d8d5 @tralph tralph committed Nov 6, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 mythtv/libs/libmythdvdnav/dvdread/ifo_read.c
View
5 mythtv/libs/libmythdvdnav/dvdread/ifo_read.c
@@ -1193,7 +1193,10 @@ int ifoRead_VTS_PTT_SRPT(ifo_handle_t *ifofile) {
if(vts_ptt_srpt->nr_of_srpts > info_length / sizeof(*data)) {
fprintf(stderr, "libdvdread: PTT search table too small.\n");
- goto fail;
+ free(vts_ptt_srpt);
+ free(data);
+ ifofile->vts_ptt_srpt = 0;
+ return 0;
}
for(i = 0; i < vts_ptt_srpt->nr_of_srpts; i++) {
B2N_32(data[i]);

0 comments on commit 4299903

Please sign in to comment.
Something went wrong with that request. Please try again.