Minor bugs in error messages fixed

This commit is contained in:
Francois-Olivier Devaux 2005-02-09 10:26:22 +00:00
parent 632902d7e3
commit fdbca0fc9d
1 changed files with 9 additions and 9 deletions

View File

@ -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 */