Bug with number of layers to decode fixed

This commit is contained in:
Francois-Olivier Devaux 2005-02-01 16:30:06 +00:00
parent c83ae7397d
commit 8323900f73
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@ int main(int argc, char *argv[]) {
j2k_cp_t cp; j2k_cp_t cp;
int i; int i;
cp.layer=0;
cp.reduce=0;
if (argc != 3) { if (argc != 3) {
printf("Bad syntax: Usage: MJ2_decoder inputfile.mj2 outputfile.yuv\n"); printf("Bad syntax: Usage: MJ2_decoder inputfile.mj2 outputfile.yuv\n");
printf("Example: MJ2_decoder foreman.mj2 foreman.yuv\n"); printf("Example: MJ2_decoder foreman.mj2 foreman.yuv\n");