0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

Add appropriate const specifiers to some custom parse functions.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25260 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-12-02 16:40:20 +00:00
parent 1bf629e38e
commit c3fc57f402
3 changed files with 4 additions and 4 deletions

View File

@ -76,7 +76,7 @@ static int encode_nals(uint8_t *buf, int size, x264_nal_t *nals, int nnal){
static int put_image(struct vf_instance_s *vf, mp_image_t *mpi, double pts);
static int encode_frame(struct vf_instance_s *vf, x264_picture_t *pic_in);
void x264enc_set_param(m_option_t* opt, char* arg)
void x264enc_set_param(const m_option_t* opt, char* arg)
{
static int initted = 0;
if(!initted) {

View File

@ -649,7 +649,7 @@ static int draw_slice(uint8_t *srcimg[], int stride[],
/* copied and adapted from vo_aa_parseoption */
int
vo_zr_parseoption(m_option_t* conf, char *opt, char *param){
vo_zr_parseoption(const m_option_t* conf, const char *opt, const char *param){
/* got an option starting with zr */
zr_info_t *zr = &zr_info[zr_parsing];
int i;
@ -775,7 +775,7 @@ vo_zr_parseoption(m_option_t* conf, char *opt, char *param){
return ERR_NOT_AN_OPTION;
}
void vo_zr_revertoption(m_option_t* opt,char* param) {
void vo_zr_revertoption(const m_option_t* opt,const char* param) {
zr_info_t *zr = &zr_info[1];
zr_count = 1;

View File

@ -156,7 +156,7 @@ static struct m_struct_st stream_opts = {
stream_opts_fields
};
int dvd_parse_chapter_range(m_option_t *conf, const char *range) {
int dvd_parse_chapter_range(const m_option_t *conf, const char *range) {
const char *s;
char *t;
if (!range)