Line
Link Here
|
0 |
-- lame-398-2.orig/frontend/get_audio.c 2009-06-17 00:45:34.000000000 +0900 |
0 |
++ lame-398-2/frontend/get_audio.c 2009-06-17 00:48:58.000000000 +0900 |
Lines 605-616
Link Here
|
605 |
} |
605 |
} |
606 |
#endif |
606 |
#endif |
607 |
#ifdef HAVE_MPGLIB |
607 |
#ifdef HAVE_MPGLIB |
608 |
if ((musicin = fopen(lpszFileName, "rb")) == NULL) { |
608 |
if (!strcmp(lpszFileName, "-")) { |
|
|
609 |
lame_set_stream_binary_mode(musicin = stdin); /* Read from standard input. */ |
610 |
} |
611 |
else { |
612 |
if ((musicin = fopen(lpszFileName, "rb")) == NULL) { |
609 |
if (silent < 10) { |
613 |
if (silent < 10) { |
610 |
error_printf("Could not find \"%s\".\n", lpszFileName); |
614 |
error_printf("Could not find \"%s\".\n", lpszFileName); |
611 |
} |
615 |
} |
612 |
exit(1); |
616 |
exit(1); |
613 |
} |
617 |
} |
|
|
618 |
} |
614 |
if (-1 == lame_decode_initfile(musicin, &mp3input_data, enc_delay, enc_padding)) { |
619 |
if (-1 == lame_decode_initfile(musicin, &mp3input_data, enc_delay, enc_padding)) { |
615 |
if (silent < 10) { |
620 |
if (silent < 10) { |
616 |
error_printf("Error reading headers in mp3 input file %s.\n", lpszFileName); |
621 |
error_printf("Error reading headers in mp3 input file %s.\n", lpszFileName); |