Minor bugs in error messages fixed
This commit is contained in:
parent
632902d7e3
commit
fdbca0fc9d
14
mj2/mj2.c
14
mj2/mj2.c
|
@ -1808,12 +1808,12 @@ int mj2_read_smhd(mj2_tk_t * tk)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (0 != cio_read(1)) { /* Version = 0 */
|
if (0 != cio_read(1)) { /* Version = 0 */
|
||||||
fprintf(stderr, "Error: Only Version 0 handled in VMHD box\n");
|
fprintf(stderr, "Error: Only Version 0 handled in SMHD box\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (0 != cio_read(3)) { /* Flags = 0 */
|
if (0 != cio_read(3)) { /* Flags = 0 */
|
||||||
fprintf(stderr, "Error with flag in VMHD box. Expected flag 0\n");
|
fprintf(stderr, "Error with flag in SMHD box. Expected flag 0\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1874,12 +1874,12 @@ int mj2_read_hmhd(mj2_tk_t * tk)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (0 != cio_read(1)) { /* Version = 0 */
|
if (0 != cio_read(1)) { /* Version = 0 */
|
||||||
fprintf(stderr, "Error: Only Version 0 handled in VMHD box\n");
|
fprintf(stderr, "Error: Only Version 0 handled in HMHD box\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (0 != cio_read(3)) { /* Flags = 0 */
|
if (0 != cio_read(3)) { /* Flags = 0 */
|
||||||
fprintf(stderr, "Error with flag in VMHD box. Expected flag 0\n");
|
fprintf(stderr, "Error with flag in HMHD box. Expected flag 0\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2057,12 +2057,12 @@ int mj2_read_hdlr(mj2_tk_t * tk)
|
||||||
|
|
||||||
|
|
||||||
if (0 != cio_read(1)) { /* Version = 0 */
|
if (0 != cio_read(1)) { /* Version = 0 */
|
||||||
fprintf(stderr, "Error: Only Version 0 handled in VMHD box\n");
|
fprintf(stderr, "Error: Only Version 0 handled in HDLR box\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (0 != cio_read(3)) { /* Flags = 0 */
|
if (0 != cio_read(3)) { /* Flags = 0 */
|
||||||
fprintf(stderr, "Error with flag in VMHD box. Expected flag 0\n");
|
fprintf(stderr, "Error with flag in HDLR box. Expected flag 0\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2521,7 +2521,7 @@ int mj2_read_mvhd(mj2_movie_t * movie)
|
||||||
|
|
||||||
|
|
||||||
if (0 != cio_read(4)) { /* Version = 0, flags = 0 */
|
if (0 != cio_read(4)) { /* Version = 0, flags = 0 */
|
||||||
fprintf(stderr, "Error: Only Version 0 handled\n");
|
fprintf(stderr, "Error: Only Version 0 handled in MVHD box\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
movie->creation_time = cio_read(4); /* Creation Time */
|
movie->creation_time = cio_read(4); /* Creation Time */
|
||||||
|
|
Loading…
Reference in New Issue