OSDN Git Service

x264 bump from r1698 to r1703
[handbrake-jp/handbrake-jp-git.git] / contrib / libdvdnav / A02-mult-pgc.patch
1 # the bit tested here does not indicate 'random or shuffle' - it only says
2 # that the title uses multiple PGCs. Since libdvdnav mostly deals correctly
3 # with mult PGC titles (modulo some weirdness when seeking) we need the
4 # state to get set correctly.
5 --- libdvdnav/src/vm/vm.c.orig  2009-05-13 20:44:12.000000000 -0700
6 +++ libdvdnav/src/vm/vm.c       2009-05-13 20:46:02.000000000 -0700
7 @@ -1758,14 +1758,10 @@
8      if((vm->state).TTN_REG > vm->vmgi->tt_srpt->nr_of_srpts)
9        return 0; /* ?? */
10      pb_ty = &vm->vmgi->tt_srpt->title[(vm->state).TTN_REG - 1].pb_ty;
11 -    if(pb_ty->multi_or_random_pgc_title == /* One_Sequential_PGC_Title */ 0) {
12 +
13        int dummy, part;
14        vm_get_current_title_part(vm, &dummy, &part);
15        (vm->state).PTTN_REG = part;
16 -    } else {
17 -      /* FIXME: Handle RANDOM or SHUFFLE titles. */
18 -      fprintf(MSG_OUT, "libdvdnav: RANDOM or SHUFFLE titles are NOT handled yet.\n");
19 -    }
20    }
21    return 1;
22  }