comparison mencoder.c @ 8925:5c15777f1c07

this patch adds an fallback to playlist (any but the plaintext-list format) after all demuxers failed. so -playlist is not needed any more! patch by Fabian Franz <FabianFranz@gmx.de>, with some small modifications
author arpi
date Sun, 12 Jan 2003 19:41:38 +0000
parents 97a26dea07bb
children ec8af5150ea2
comparison
equal deleted inserted replaced
8924:e0ec616c5985 8925:5c15777f1c07
389 // FIXME: get rid of -dvd and other tricky options 389 // FIXME: get rid of -dvd and other tricky options
390 stream2=open_stream(frameno_filename,0,&i); 390 stream2=open_stream(frameno_filename,0,&i);
391 if(stream2){ 391 if(stream2){
392 demuxer2=demux_open(stream2,DEMUXER_TYPE_AVI,-1,-1,-2); 392 demuxer2=demux_open(stream2,DEMUXER_TYPE_AVI,-1,-1,-2);
393 if(demuxer2) printf(MSGTR_UsingPass3ControllFile,frameno_filename); 393 if(demuxer2) printf(MSGTR_UsingPass3ControllFile,frameno_filename);
394 else mp_msg(MSGT_DEMUXER,MSGL_ERR,MSGTR_FormatNotRecognized);
394 } 395 }
395 396
396 // New config code 397 // New config code
397 #ifdef NEW_CONFIG 398 #ifdef NEW_CONFIG
398 mconfig = m_config_new(); 399 mconfig = m_config_new();
491 if(demuxer2) audio_id=-2; /* do NOT read audio packets... */ 492 if(demuxer2) audio_id=-2; /* do NOT read audio packets... */
492 493
493 //demuxer=demux_open(stream,file_format,video_id,audio_id,dvdsub_id); 494 //demuxer=demux_open(stream,file_format,video_id,audio_id,dvdsub_id);
494 demuxer=demux_open(stream,file_format,audio_id,video_id,dvdsub_id); 495 demuxer=demux_open(stream,file_format,audio_id,video_id,dvdsub_id);
495 if(!demuxer){ 496 if(!demuxer){
497 mp_msg(MSGT_DEMUXER,MSGL_ERR,MSGTR_FormatNotRecognized);
496 printf(MSGTR_CannotOpenDemuxer); 498 printf(MSGTR_CannotOpenDemuxer);
497 mencoder_exit(1,NULL); 499 mencoder_exit(1,NULL);
498 } 500 }
499 501
500 d_audio=demuxer2 ? demuxer2->audio : demuxer->audio; 502 d_audio=demuxer2 ? demuxer2->audio : demuxer->audio;