mirror of
https://code.videolan.org/videolan/x264
synced 2024-11-15 03:32:13 +01:00
Mark cli_input/output_t variables as const when possible
This commit is contained in:
parent
e49414918c
commit
2e9ec3f66a
@ -313,4 +313,4 @@ static int close_file( hnd_t handle )
|
||||
return 0;
|
||||
}
|
||||
|
||||
cli_input_t avs_input = { open_file, get_frame_total, picture_alloc, read_frame, release_frame, picture_clean, close_file };
|
||||
const cli_input_t avs_input = { open_file, get_frame_total, picture_alloc, read_frame, release_frame, picture_clean, close_file };
|
||||
|
@ -244,4 +244,4 @@ static int close_file( hnd_t handle )
|
||||
return 0;
|
||||
}
|
||||
|
||||
cli_input_t ffms_input = { open_file, get_frame_total, x264_picture_alloc, read_frame, NULL, x264_picture_clean, close_file };
|
||||
const cli_input_t ffms_input = { open_file, get_frame_total, x264_picture_alloc, read_frame, NULL, x264_picture_clean, close_file };
|
||||
|
@ -60,11 +60,11 @@ typedef struct
|
||||
int (*close_file)( hnd_t handle );
|
||||
} cli_input_t;
|
||||
|
||||
extern cli_input_t yuv_input;
|
||||
extern cli_input_t y4m_input;
|
||||
extern cli_input_t avs_input;
|
||||
extern const cli_input_t yuv_input;
|
||||
extern const cli_input_t y4m_input;
|
||||
extern const cli_input_t avs_input;
|
||||
extern cli_input_t thread_input;
|
||||
extern cli_input_t lavf_input;
|
||||
extern cli_input_t ffms_input;
|
||||
extern const cli_input_t lavf_input;
|
||||
extern const cli_input_t ffms_input;
|
||||
|
||||
#endif
|
||||
|
@ -269,4 +269,4 @@ static int close_file( hnd_t handle )
|
||||
return 0;
|
||||
}
|
||||
|
||||
cli_input_t lavf_input = { open_file, get_frame_total, picture_alloc, read_frame, NULL, picture_clean, close_file };
|
||||
const cli_input_t lavf_input = { open_file, get_frame_total, picture_alloc, read_frame, NULL, picture_clean, close_file };
|
||||
|
@ -242,4 +242,4 @@ static int close_file( hnd_t handle )
|
||||
return 0;
|
||||
}
|
||||
|
||||
cli_input_t y4m_input = { open_file, get_frame_total, x264_picture_alloc, read_frame, NULL, x264_picture_clean, close_file };
|
||||
const cli_input_t y4m_input = { open_file, get_frame_total, x264_picture_alloc, read_frame, NULL, x264_picture_clean, close_file };
|
||||
|
@ -125,4 +125,4 @@ static int close_file( hnd_t handle )
|
||||
return 0;
|
||||
}
|
||||
|
||||
cli_input_t yuv_input = { open_file, get_frame_total, x264_picture_alloc, read_frame, NULL, x264_picture_clean, close_file };
|
||||
const cli_input_t yuv_input = { open_file, get_frame_total, x264_picture_alloc, read_frame, NULL, x264_picture_clean, close_file };
|
||||
|
@ -305,4 +305,4 @@ static int close_file( hnd_t handle, int64_t largest_pts, int64_t second_largest
|
||||
return 0;
|
||||
}
|
||||
|
||||
cli_output_t flv_output = { open_file, set_param, write_headers, write_frame, close_file };
|
||||
const cli_output_t flv_output = { open_file, set_param, write_headers, write_frame, close_file };
|
||||
|
@ -206,4 +206,4 @@ static int close_file( hnd_t handle, int64_t largest_pts, int64_t second_largest
|
||||
return ret;
|
||||
}
|
||||
|
||||
cli_output_t mkv_output = { open_file, set_param, write_headers, write_frame, close_file };
|
||||
const cli_output_t mkv_output = { open_file, set_param, write_headers, write_frame, close_file };
|
||||
|
@ -298,4 +298,4 @@ static int write_frame( hnd_t handle, uint8_t *p_nalu, int i_size, x264_picture_
|
||||
return i_size;
|
||||
}
|
||||
|
||||
cli_output_t mp4_output = { open_file, set_param, write_headers, write_frame, close_file };
|
||||
const cli_output_t mp4_output = { open_file, set_param, write_headers, write_frame, close_file };
|
||||
|
@ -33,9 +33,9 @@ typedef struct
|
||||
int (*close_file)( hnd_t handle, int64_t largest_pts, int64_t second_largest_pts );
|
||||
} cli_output_t;
|
||||
|
||||
extern cli_output_t raw_output;
|
||||
extern cli_output_t mkv_output;
|
||||
extern cli_output_t mp4_output;
|
||||
extern cli_output_t flv_output;
|
||||
extern const cli_output_t raw_output;
|
||||
extern const cli_output_t mkv_output;
|
||||
extern const cli_output_t mp4_output;
|
||||
extern const cli_output_t flv_output;
|
||||
|
||||
#endif
|
||||
|
@ -62,5 +62,5 @@ static int close_file( hnd_t handle, int64_t largest_pts, int64_t second_largest
|
||||
return fclose( (FILE*)handle );
|
||||
}
|
||||
|
||||
cli_output_t raw_output = { open_file, set_param, write_headers, write_frame, close_file };
|
||||
const cli_output_t raw_output = { open_file, set_param, write_headers, write_frame, close_file };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user