outbuf_size = 10000;
outbuf = malloc(outbuf_size);
- f = fopen(filename, "w");
+ f = fopen(filename, "wb");
if (!f) {
fprintf(stderr, "could not open %s\n", filename);
exit(1);
outbuf = malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE);
- f = fopen(filename, "r");
+ f = fopen(filename, "rb");
if (!f) {
fprintf(stderr, "could not open %s\n", filename);
exit(1);
}
- outfile = fopen(outfilename, "w");
+ outfile = fopen(outfilename, "wb");
if (!outfile) {
free(c);
exit(1);
/* the codec gives us the frame size, in samples */
- f = fopen(filename, "w");
+ f = fopen(filename, "wb");
if (!f) {
fprintf(stderr, "could not open %s\n", filename);
exit(1);
/* the codec gives us the frame size, in samples */
- f = fopen(filename, "r");
+ f = fopen(filename, "rb");
if (!f) {
fprintf(stderr, "could not open %s\n", filename);
exit(1);