[libdvdnav-devel] Initialise SPRM 15 (audio capabilities) to meaningful value
Richard Hulme
git at videolan.org
Tue Feb 18 16:39:13 CET 2014
libdvdnav | branch: master | Richard Hulme <peper03 at yahoo.com> | Sat Feb 8 12:39:00 2014 +0100| [13f4741955d475e3b5209b0cc0887ac6645de3c9] | committer: Jean-Baptiste Kempf
Initialise SPRM 15 (audio capabilities) to meaningful value
This initialises the audio capabilities register (SPRM 15)
to indicate that all audio features are available.
My region 2 version of 'Monsters University' queries this register in
'first play' and jumps to an invalid title if it is zero.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/libdvdnav.git/?a=commit;h=13f4741955d475e3b5209b0cc0887ac6645de3c9
---
src/vm/vm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/vm/vm.c b/src/vm/vm.c
index b4c0687..192e868 100644
--- a/src/vm/vm.c
+++ b/src/vm/vm.c
@@ -345,6 +345,7 @@ int vm_reset(vm_t *vm, const char *dvdroot) {
vm->state.registers.SPRM[18] = ('e'<<8)|'n'; /* Initial Language Code for Spu */
vm->state.registers.SPRM[20] = 0x1; /* Player Regional Code Mask. Region free! */
vm->state.registers.SPRM[14] = 0x100; /* Try Pan&Scan */
+ vm->state.registers.SPRM[15] = 0x7CFC; /* Audio capabilities - All defined audio types */
vm->state.pgN = 0;
vm->state.cellN = 0;
More information about the libdvdnav-devel
mailing list