comparison mencoder.c @ 16752:425863aab3df

fix mencoder multi-file with some files having audio but others dont
author ods15
date Thu, 13 Oct 2005 19:30:07 +0000
parents 89504641c2a5
children 5f23a3beddfd
comparison
equal deleted inserted replaced
16751:d9465442eef2 16752:425863aab3df
946 signal(SIGHUP,exit_sighandler); // broken terminal line 946 signal(SIGHUP,exit_sighandler); // broken terminal line
947 signal(SIGPIPE,exit_sighandler); // broken pipe 947 signal(SIGPIPE,exit_sighandler); // broken pipe
948 948
949 timer_start=GetTimerMS(); 949 timer_start=GetTimerMS();
950 } // if (!curfile) // if this was the first file. 950 } // if (!curfile) // if this was the first file.
951 else if (sh_audio) { 951 else {
952 if (!mux_a != !sh_audio) {
953 mp_msg(MSGT_MENCODER,MSGL_FATAL,MSGTR_NoAudioFileMismatch);
954 mencoder_exit(1,NULL);
955 }
956 if (sh_audio) {
952 int out_format = 0, out_minsize = 0, out_maxsize = 0; 957 int out_format = 0, out_minsize = 0, out_maxsize = 0;
953 int do_init_filters = 1; 958 int do_init_filters = 1;
954 if((aencoder != NULL) && (mux_a->codec != ACODEC_COPY)) 959 if((aencoder != NULL) && (mux_a->codec != ACODEC_COPY))
955 { 960 {
956 out_format = aencoder->input_format; 961 out_format = aencoder->input_format;
1009 } 1014 }
1010 mux_a->wf->nSamplesPerSec = out_srate; 1015 mux_a->wf->nSamplesPerSec = out_srate;
1011 mux_a->wf->nChannels = out_channels; 1016 mux_a->wf->nChannels = out_channels;
1012 } 1017 }
1013 } 1018 }
1019 }
1014 1020
1015 parse_end_at(); 1021 parse_end_at();
1016 1022
1017 if (seek_to_sec) { 1023 if (seek_to_sec) {
1018 int a,b; float d; 1024 int a,b; float d;