summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authorlgb <lgb@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-04 14:03:02 +0000
committerlgb <lgb@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-04 14:03:02 +0000
commite360cb9644e4c297cf1f1b7953f24316a4d4ee90 (patch)
tree77165b06e2fc5be5c426b24d14feb09bcc294b7d /mencoder.c
parent3b4d807f6650cd4ecdea2bb28c843a55680b8d47 (diff)
downloadmpv-e360cb9644e4c297cf1f1b7953f24316a4d4ee90.tar.bz2
mpv-e360cb9644e4c297cf1f1b7953f24316a4d4ee90.tar.xz
libcss support in mencoder, too
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3980 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/mencoder.c b/mencoder.c
index 55a019c580..d34819dfa3 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -382,6 +382,25 @@ divx4_param.rc_reaction_ratio = 20;
if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,0,0);
+#ifdef HAVE_LIBCSS
+// current_module="libcss";
+ if (dvdimportkey) {
+ if (dvd_import_key(dvdimportkey)) {
+ mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_ErrorDVDkey);
+ exit(1);
+ }
+ mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_CmdlineDVDkey);
+ }
+ if (dvd_auth_device) {
+ // if (dvd_auth(dvd_auth_device,f)) {
+ if (dvd_auth(dvd_auth_device,filename)) {
+ mp_msg(MSGT_CPLAYER,MSGL_FATAL,"Error in DVD auth...\n");
+ exit(1);
+ }
+ mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_DVDauthOk);
+ }
+#endif
+
//demuxer=demux_open(stream,file_format,video_id,audio_id,dvdsub_id);
demuxer=demux_open(stream,file_format,audio_id,video_id,dvdsub_id);
if(!demuxer){