mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
*** empty log message ***
This commit is contained in:
@@ -20,8 +20,6 @@ EXTRA_DIST = \
|
|||||||
example_c_decode_file.dsp \
|
example_c_decode_file.dsp \
|
||||||
example_c_decode_file.vcproj \
|
example_c_decode_file.vcproj \
|
||||||
|
|
||||||
INCLUDES = -I$(top_srcdir)/src/libFLAC/include
|
|
||||||
|
|
||||||
noinst_PROGRAMS = example_c_decode_file
|
noinst_PROGRAMS = example_c_decode_file
|
||||||
example_c_decode_file_LDADD = \
|
example_c_decode_file_LDADD = \
|
||||||
@OGG_LIBS@ \
|
@OGG_LIBS@ \
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ libdir = $(topdir)/obj/$(BUILD)/lib
|
|||||||
|
|
||||||
PROGRAM_NAME = example_c_decode_file
|
PROGRAM_NAME = example_c_decode_file
|
||||||
|
|
||||||
INCLUDES = -I../libFLAC/include -I$(topdir)/include
|
INCLUDES = -I$(topdir)/include
|
||||||
|
|
||||||
ifeq ($(DARWIN_BUILD),yes)
|
ifeq ($(DARWIN_BUILD),yes)
|
||||||
EXPLICIT_LIBS = $(libdir)/libFLAC.a $(OGG_LIB_DIR)/libogg.a -lm
|
EXPLICIT_LIBS = $(libdir)/libFLAC.a $(OGG_LIB_DIR)/libogg.a -lm
|
||||||
|
|||||||
@@ -73,13 +73,14 @@ int main(int argc, char *argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((decoder = FLAC__stream_decoder_new()) == NULL) {
|
if((fout = fopen(argv[2], "wb")) == NULL) {
|
||||||
fprintf(stderr, "ERROR: allocation decoder\n");
|
fprintf(stderr, "ERROR: opening %s for output\n", argv[2]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((fout = fopen(argv[2], "wb")) == NULL) {
|
if((decoder = FLAC__stream_decoder_new()) == NULL) {
|
||||||
fprintf(stderr, "ERROR: opening %s for output\n", argv[2]);
|
fprintf(stderr, "ERROR: allocating decoder\n");
|
||||||
|
fclose(fout);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user