1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-02 21:12:23 +00:00

Options registration for mencoder

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4768 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2002-02-20 17:02:31 +00:00
parent d14e6b691c
commit 9680e72621
3 changed files with 18 additions and 2 deletions

View File

@ -28,7 +28,7 @@ MANDIR = ${prefix}/man
INSTALL = install
SRCS_COMMON = cyuv.c adpcm.c xacodec.c cpudetect.c mp_msg.c ac3-iec958.c dec_audio.c dec_video.c msvidc.c cinepak.c fli.c qtrle.c codec-cfg.c cfgparser.c my_profile.c RTjpegN.c minilzo.c nuppelvideo.c spudec.c playtree.c playtreeparser.c asxparser.c qtsmc.c ducktm1.c roqav.c qtrpza.c
SRCS_MENCODER = mencoder.c $(SRCS_COMMON) libao2/afmt.c divx4_vbr.c libvo/aclib.c libvo/img_format.c libvo/osd.c
SRCS_MENCODER = mencoder.c $(SRCS_COMMON) libao2/afmt.c divx4_vbr.c libvo/aclib.c libvo/img_format.c libvo/osd.c me-opt-reg.c
SRCS_MPLAYER = mplayer.c $(SRCS_COMMON) find_sub.c subreader.c lirc_mp.c mixer.c vobsub.c mp-opt-reg.c
OBJS_MENCODER = $(SRCS_MENCODER:.c=.o)

14
me-opt-reg.c Normal file
View File

@ -0,0 +1,14 @@
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include "cfgparser.h"
extern void libmpdemux_register_options(m_config_t* cfg);
void
me_register_options(m_config_t* cfg) {
libmpdemux_register_options(cfg);
}

View File

@ -341,6 +341,8 @@ int dec_audio(sh_audio_t *sh_audio,unsigned char* buffer,int total){
return size;
}
extern void me_register_options(m_config_t* cfg);
//---------------------------------------------------------------------------
static int eof=0;
@ -443,7 +445,7 @@ divx4_param.rc_reaction_ratio = 20;
playtree = play_tree_new();
mconfig = m_config_new(playtree);
m_config_register_options(mconfig,mencoder_opts);
// TODO : add something to let modules register their options
me_register_options(mconfig);
parse_cfgfiles(mconfig);
if(m_config_parse_command_line(mconfig, argc, argv, envp) < 0) mencoder_exit(1, "error parsing cmdline");