X-Git-Url: http://git.ieval.ro/?p=fdkaac.git;a=blobdiff_plain;f=src%2Fmain.c;h=9e8948824868479d60e13deac2de793f6acc10d9;hp=8521a33ebd9791b174356c8cf24386f43c6205ea;hb=ed646ccf797335bd186ad5084973a575a8f0501c;hpb=8009f87dca6079cf1f07d171a2cf57557e724506 diff --git a/src/main.c b/src/main.c index 8521a33..9e89488 100644 --- a/src/main.c +++ b/src/main.c @@ -54,7 +54,8 @@ static void handle_signals(void) { int i, sigs[] = { SIGINT, SIGHUP, SIGTERM }; for (i = 0; i < sizeof(sigs)/sizeof(sigs[0]); ++i) { - struct sigaction sa = { 0 }; + struct sigaction sa; + memset(&sa, 0, sizeof sa); sa.sa_handler = signal_handler; sa.sa_flags |= SA_RESTART; sigaction(sigs[i], &sa, 0); @@ -767,10 +768,8 @@ int main(int argc, char **argv) pcm_reader_t *reader = 0; HANDLE_AACENCODER encoder = 0; AACENC_InfoStruct aacinfo = { 0 }; - LIB_INFO lib_info = { 0 }; m4af_ctx_t *m4af = 0; const pcm_sample_description_t *sample_format; - int downsampled_timescale = 0; int frame_count = 0; int sbr_mode = 0; unsigned scale_shift = 0;