Changeset 233 for libmpc/branches/r2d/mpc2sv8/mpc2sv8.c
- Timestamp:
- 03/22/07 20:24:01 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/mpc2sv8/mpc2sv8.c
r226 r233 102 102 mpc_demux_get_info(demux, &si); 103 103 104 if (si.stream_version >= 8) { 105 fprintf(stderr, "Error : this file is already a sv8 file\n"); 106 mpc_demux_exit(demux); 107 mpc_reader_exit_stdio(&reader); 108 return MPC_STATUS_INVALIDSV; 109 } 110 104 111 mpc_encoder_init(&e, si.samples, 6, 1); 105 112 e.outputFile = fopen( argv[2], "w+b" ); … … 113 120 size_t tmp_size = fread(buf, 1, mini(TMP_BUF_SIZE, r_size), in_file); 114 121 if (fwrite(buf, 1, tmp_size, e.outputFile) != tmp_size) { 115 fprintf(stderr, "Error writing to target file ");122 fprintf(stderr, "Error writing to target file\n"); 116 123 exit(!MPC_STATUS_OK); 117 124 }
Note: See TracChangeset
for help on using the changeset viewer.