Commit 298139d9 by Marcel Mol Committed by Jean-Baptiste Kempf

Fix for Unknown command type handling

Some DVDs seem to use command type 7 for something. But it will hit the 'Unknown command' check, resulting in asser(0). I.e. DVD refuses to play. By removing the assert() call the DVD seems to play fine. This patch removes the assert and corrects the error message (it is a 'command type', not a 'command') Signed-off-by: 's avatarMarcel Mol <marcel@mesa.nl> Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7c10f224
......@@ -570,9 +570,8 @@ static int32_t eval_command(uint8_t *bytes, registers_t* registers, link_t *retu
if(res)
res = -1;
break;
default: /* Unknown command */
fprintf(MSG_OUT, "libdvdnav: WARNING: Unknown Command=%x\n", vm_getbits(&command, 63, 3));
assert(0);
default: /* Unknown command type */
fprintf(MSG_OUT, "libdvdnav: WARNING: Unknown Command Type=%x\n", vm_getbits(&command, 63, 3));
}
/* Check if there are bits not yet examined */
......
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