comparison mencoder.c @ 3979:b28af7b58f4c

libcss support in mencoder, too
author lgb
date Fri, 04 Jan 2002 14:03:02 +0000
parents 5f7f8994137e
children 4435dc3b8bef
comparison
equal deleted inserted replaced
3978:2ba1d0ca9dce 3979:b28af7b58f4c
379 } 379 }
380 380
381 printf("success: format: %d data: 0x%X - 0x%X\n",file_format, (int)(stream->start_pos),(int)(stream->end_pos)); 381 printf("success: format: %d data: 0x%X - 0x%X\n",file_format, (int)(stream->start_pos),(int)(stream->end_pos));
382 382
383 if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,0,0); 383 if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,0,0);
384
385 #ifdef HAVE_LIBCSS
386 // current_module="libcss";
387 if (dvdimportkey) {
388 if (dvd_import_key(dvdimportkey)) {
389 mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_ErrorDVDkey);
390 exit(1);
391 }
392 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_CmdlineDVDkey);
393 }
394 if (dvd_auth_device) {
395 // if (dvd_auth(dvd_auth_device,f)) {
396 if (dvd_auth(dvd_auth_device,filename)) {
397 mp_msg(MSGT_CPLAYER,MSGL_FATAL,"Error in DVD auth...\n");
398 exit(1);
399 }
400 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_DVDauthOk);
401 }
402 #endif
384 403
385 //demuxer=demux_open(stream,file_format,video_id,audio_id,dvdsub_id); 404 //demuxer=demux_open(stream,file_format,video_id,audio_id,dvdsub_id);
386 demuxer=demux_open(stream,file_format,audio_id,video_id,dvdsub_id); 405 demuxer=demux_open(stream,file_format,audio_id,video_id,dvdsub_id);
387 if(!demuxer){ 406 if(!demuxer){
388 printf("Cannot open demuxer\n"); 407 printf("Cannot open demuxer\n");