Add const to (mostly) char* and make some functions static, which aren't used
outside their declaring source file and which have no corresponding prototype. patch by Stefan Huehner stefan^^@^^huehner^^.^^org Originally committed as revision 5497 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3b9bee8889
commit
7b49ce2e34
8
ffmpeg.c
8
ffmpeg.c
@ -211,12 +211,12 @@ static int video_global_header = 0;
|
|||||||
static int rate_emu = 0;
|
static int rate_emu = 0;
|
||||||
|
|
||||||
#ifdef CONFIG_BKTR
|
#ifdef CONFIG_BKTR
|
||||||
static char *video_grab_format = "bktr";
|
static const char *video_grab_format = "bktr";
|
||||||
#else
|
#else
|
||||||
#ifdef CONFIG_VIDEO4LINUX2
|
#ifdef CONFIG_VIDEO4LINUX2
|
||||||
static char *video_grab_format = "video4linux2";
|
static const char *video_grab_format = "video4linux2";
|
||||||
#else
|
#else
|
||||||
static char *video_grab_format = "video4linux";
|
static const char *video_grab_format = "video4linux";
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
static char *video_device = NULL;
|
static char *video_device = NULL;
|
||||||
@ -224,7 +224,7 @@ static char *grab_device = NULL;
|
|||||||
static int video_channel = 0;
|
static int video_channel = 0;
|
||||||
static char *video_standard = "ntsc";
|
static char *video_standard = "ntsc";
|
||||||
|
|
||||||
static char *audio_grab_format = "audio_device";
|
static const char *audio_grab_format = "audio_device";
|
||||||
static char *audio_device = NULL;
|
static char *audio_device = NULL;
|
||||||
static int audio_volume = 256;
|
static int audio_volume = 256;
|
||||||
|
|
||||||
|
16
ffplay.c
16
ffplay.c
@ -1735,7 +1735,7 @@ static void stream_component_close(VideoState *is, int stream_index)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void dump_stream_info(AVFormatContext *s)
|
static void dump_stream_info(const AVFormatContext *s)
|
||||||
{
|
{
|
||||||
if (s->track != 0)
|
if (s->track != 0)
|
||||||
fprintf(stderr, "Track: %d\n", s->track);
|
fprintf(stderr, "Track: %d\n", s->track);
|
||||||
@ -2042,7 +2042,7 @@ static void stream_close(VideoState *is)
|
|||||||
SDL_DestroyMutex(is->video_decoder_mutex);
|
SDL_DestroyMutex(is->video_decoder_mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
void stream_cycle_channel(VideoState *is, int codec_type)
|
static void stream_cycle_channel(VideoState *is, int codec_type)
|
||||||
{
|
{
|
||||||
AVFormatContext *ic = is->ic;
|
AVFormatContext *ic = is->ic;
|
||||||
int start_index, stream_index;
|
int start_index, stream_index;
|
||||||
@ -2092,7 +2092,7 @@ void stream_cycle_channel(VideoState *is, int codec_type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void toggle_full_screen(void)
|
static void toggle_full_screen(void)
|
||||||
{
|
{
|
||||||
int w, h, flags;
|
int w, h, flags;
|
||||||
is_full_screen = !is_full_screen;
|
is_full_screen = !is_full_screen;
|
||||||
@ -2117,14 +2117,14 @@ void toggle_full_screen(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void toggle_pause(void)
|
static void toggle_pause(void)
|
||||||
{
|
{
|
||||||
if (cur_stream)
|
if (cur_stream)
|
||||||
stream_pause(cur_stream);
|
stream_pause(cur_stream);
|
||||||
step = 0;
|
step = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void step_to_next_frame(void)
|
static void step_to_next_frame(void)
|
||||||
{
|
{
|
||||||
if (cur_stream) {
|
if (cur_stream) {
|
||||||
if (cur_stream->paused)
|
if (cur_stream->paused)
|
||||||
@ -2134,7 +2134,7 @@ void step_to_next_frame(void)
|
|||||||
step = 1;
|
step = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void do_exit(void)
|
static void do_exit(void)
|
||||||
{
|
{
|
||||||
if (cur_stream) {
|
if (cur_stream) {
|
||||||
stream_close(cur_stream);
|
stream_close(cur_stream);
|
||||||
@ -2146,7 +2146,7 @@ void do_exit(void)
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void toggle_audio_display(void)
|
static void toggle_audio_display(void)
|
||||||
{
|
{
|
||||||
if (cur_stream) {
|
if (cur_stream) {
|
||||||
cur_stream->show_audio = !cur_stream->show_audio;
|
cur_stream->show_audio = !cur_stream->show_audio;
|
||||||
@ -2154,7 +2154,7 @@ void toggle_audio_display(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* handle an event sent by the GUI */
|
/* handle an event sent by the GUI */
|
||||||
void event_loop(void)
|
static void event_loop(void)
|
||||||
{
|
{
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
double incr, pos, frac;
|
double incr, pos, frac;
|
||||||
|
@ -3704,7 +3704,7 @@ static int opt_video_codec(const char *arg)
|
|||||||
/* simplistic plugin support */
|
/* simplistic plugin support */
|
||||||
|
|
||||||
#ifdef CONFIG_HAVE_DLOPEN
|
#ifdef CONFIG_HAVE_DLOPEN
|
||||||
void load_module(const char *filename)
|
static void load_module(const char *filename)
|
||||||
{
|
{
|
||||||
void *dll;
|
void *dll;
|
||||||
void (*init_func)(void);
|
void (*init_func)(void);
|
||||||
|
@ -407,7 +407,7 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void deinterlace_16(int32_t *buffer_a, int32_t *buffer_b,
|
static void deinterlace_16(int32_t *buffer_a, int32_t *buffer_b,
|
||||||
int16_t *buffer_out,
|
int16_t *buffer_out,
|
||||||
int numchannels, int numsamples,
|
int numchannels, int numsamples,
|
||||||
uint8_t interlacing_shift,
|
uint8_t interlacing_shift,
|
||||||
|
@ -346,7 +346,7 @@ static void convert_from_rgba32(uint8_t *dst, const uint8_t *src, int width)
|
|||||||
|
|
||||||
d = dst;
|
d = dst;
|
||||||
for(j = 0; j < width; j++) {
|
for(j = 0; j < width; j++) {
|
||||||
v = ((uint32_t *)src)[j];
|
v = ((const uint32_t *)src)[j];
|
||||||
d[0] = v >> 16;
|
d[0] = v >> 16;
|
||||||
d[1] = v >> 8;
|
d[1] = v >> 8;
|
||||||
d[2] = v;
|
d[2] = v;
|
||||||
|
@ -62,7 +62,7 @@ typedef struct AVResampleContext{
|
|||||||
/**
|
/**
|
||||||
* 0th order modified bessel function of the first kind.
|
* 0th order modified bessel function of the first kind.
|
||||||
*/
|
*/
|
||||||
double bessel(double x){
|
static double bessel(double x){
|
||||||
double v=1;
|
double v=1;
|
||||||
double t=1;
|
double t=1;
|
||||||
int i;
|
int i;
|
||||||
|
@ -188,7 +188,8 @@ static void truespeech_filters_merge(TSContext *dec)
|
|||||||
|
|
||||||
static void truespeech_apply_twopoint_filter(TSContext *dec, int quart)
|
static void truespeech_apply_twopoint_filter(TSContext *dec, int quart)
|
||||||
{
|
{
|
||||||
int16_t tmp[146 + 60], *ptr0, *ptr1, *filter;
|
int16_t tmp[146 + 60], *ptr0, *ptr1;
|
||||||
|
const int16_t *filter;
|
||||||
int i, t, off;
|
int i, t, off;
|
||||||
|
|
||||||
t = dec->offset2[quart];
|
t = dec->offset2[quart];
|
||||||
@ -201,7 +202,7 @@ static void truespeech_apply_twopoint_filter(TSContext *dec, int quart)
|
|||||||
off = (t / 25) + dec->offset1[quart >> 1] + 18;
|
off = (t / 25) + dec->offset1[quart >> 1] + 18;
|
||||||
ptr0 = tmp + 145 - off;
|
ptr0 = tmp + 145 - off;
|
||||||
ptr1 = tmp + 146;
|
ptr1 = tmp + 146;
|
||||||
filter = (int16_t*)ts_240 + (t % 25) * 2;
|
filter = (const int16_t*)ts_240 + (t % 25) * 2;
|
||||||
for(i = 0; i < 60; i++){
|
for(i = 0; i < 60; i++){
|
||||||
t = (ptr0[0] * filter[0] + ptr0[1] * filter[1] + 0x2000) >> 14;
|
t = (ptr0[0] * filter[0] + ptr0[1] * filter[1] + 0x2000) >> 14;
|
||||||
ptr0++;
|
ptr0++;
|
||||||
@ -214,7 +215,8 @@ static void truespeech_place_pulses(TSContext *dec, int16_t *out, int quart)
|
|||||||
{
|
{
|
||||||
int16_t tmp[7];
|
int16_t tmp[7];
|
||||||
int i, j, t;
|
int i, j, t;
|
||||||
int16_t *ptr1, *ptr2;
|
const int16_t *ptr1;
|
||||||
|
int16_t *ptr2;
|
||||||
int coef;
|
int coef;
|
||||||
|
|
||||||
memset(out, 0, 60 * 2);
|
memset(out, 0, 60 * 2);
|
||||||
@ -225,7 +227,7 @@ static void truespeech_place_pulses(TSContext *dec, int16_t *out, int quart)
|
|||||||
}
|
}
|
||||||
|
|
||||||
coef = dec->pulsepos[quart] >> 15;
|
coef = dec->pulsepos[quart] >> 15;
|
||||||
ptr1 = (int16_t*)ts_140 + 30;
|
ptr1 = (const int16_t*)ts_140 + 30;
|
||||||
ptr2 = tmp;
|
ptr2 = tmp;
|
||||||
for(i = 0, j = 3; (i < 30) && (j > 0); i++){
|
for(i = 0, j = 3; (i < 30) && (j > 0); i++){
|
||||||
t = *ptr1++;
|
t = *ptr1++;
|
||||||
@ -238,7 +240,7 @@ static void truespeech_place_pulses(TSContext *dec, int16_t *out, int quart)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
coef = dec->pulsepos[quart] & 0x7FFF;
|
coef = dec->pulsepos[quart] & 0x7FFF;
|
||||||
ptr1 = (int16_t*)ts_140;
|
ptr1 = (const int16_t*)ts_140;
|
||||||
for(i = 30, j = 4; (i < 60) && (j > 0); i++){
|
for(i = 30, j = 4; (i < 60) && (j > 0); i++){
|
||||||
t = *ptr1++;
|
t = *ptr1++;
|
||||||
if(coef >= t)
|
if(coef >= t)
|
||||||
|
@ -110,7 +110,7 @@ static int fix_bps(int codec_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Returns the number of sound data frames or negative on error */
|
/* Returns the number of sound data frames or negative on error */
|
||||||
unsigned int get_aiff_header(ByteIOContext *pb, AVCodecContext *codec,
|
static unsigned int get_aiff_header(ByteIOContext *pb, AVCodecContext *codec,
|
||||||
int size, unsigned version)
|
int size, unsigned version)
|
||||||
{
|
{
|
||||||
AVExtFloat ext;
|
AVExtFloat ext;
|
||||||
|
@ -1341,7 +1341,7 @@ static int mov_write_moov_tag(ByteIOContext *pb, MOVContext *mov,
|
|||||||
return updateSize(pb, pos);
|
return updateSize(pb, pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
int mov_write_mdat_tag(ByteIOContext *pb, MOVContext* mov)
|
static int mov_write_mdat_tag(ByteIOContext *pb, MOVContext* mov)
|
||||||
{
|
{
|
||||||
put_be32(pb, 8); // placeholder for extended size field (64 bit)
|
put_be32(pb, 8); // placeholder for extended size field (64 bit)
|
||||||
put_tag(pb, "wide");
|
put_tag(pb, "wide");
|
||||||
|
@ -151,7 +151,7 @@ static void write_section_data(AVFormatContext *s, MpegTSFilter *tss1,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MpegTSFilter *mpegts_open_section_filter(MpegTSContext *ts, unsigned int pid,
|
static MpegTSFilter *mpegts_open_section_filter(MpegTSContext *ts, unsigned int pid,
|
||||||
SectionCallback *section_cb, void *opaque,
|
SectionCallback *section_cb, void *opaque,
|
||||||
int check_crc)
|
int check_crc)
|
||||||
|
|
||||||
@ -183,7 +183,7 @@ MpegTSFilter *mpegts_open_section_filter(MpegTSContext *ts, unsigned int pid,
|
|||||||
return filter;
|
return filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
MpegTSFilter *mpegts_open_pes_filter(MpegTSContext *ts, unsigned int pid,
|
static MpegTSFilter *mpegts_open_pes_filter(MpegTSContext *ts, unsigned int pid,
|
||||||
PESCallback *pes_cb,
|
PESCallback *pes_cb,
|
||||||
void *opaque)
|
void *opaque)
|
||||||
{
|
{
|
||||||
@ -205,7 +205,7 @@ MpegTSFilter *mpegts_open_pes_filter(MpegTSContext *ts, unsigned int pid,
|
|||||||
return filter;
|
return filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mpegts_close_filter(MpegTSContext *ts, MpegTSFilter *filter)
|
static void mpegts_close_filter(MpegTSContext *ts, MpegTSFilter *filter)
|
||||||
{
|
{
|
||||||
int pid;
|
int pid;
|
||||||
|
|
||||||
@ -609,7 +609,7 @@ static void pat_scan_cb(void *opaque, const uint8_t *section, int section_len)
|
|||||||
ts->pat_filter = NULL;
|
ts->pat_filter = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mpegts_set_service(MpegTSContext *ts, int sid,
|
static void mpegts_set_service(MpegTSContext *ts, int sid,
|
||||||
SetServiceCallback *set_service_cb, void *opaque)
|
SetServiceCallback *set_service_cb, void *opaque)
|
||||||
{
|
{
|
||||||
ts->set_service_cb = set_service_cb;
|
ts->set_service_cb = set_service_cb;
|
||||||
@ -696,7 +696,7 @@ static void sdt_cb(void *opaque, const uint8_t *section, int section_len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* scan services in a transport stream by looking at the SDT */
|
/* scan services in a transport stream by looking at the SDT */
|
||||||
void mpegts_scan_sdt(MpegTSContext *ts)
|
static void mpegts_scan_sdt(MpegTSContext *ts)
|
||||||
{
|
{
|
||||||
ts->sdt_filter = mpegts_open_section_filter(ts, SDT_PID,
|
ts->sdt_filter = mpegts_open_section_filter(ts, SDT_PID,
|
||||||
sdt_cb, ts, 1);
|
sdt_cb, ts, 1);
|
||||||
@ -704,7 +704,7 @@ void mpegts_scan_sdt(MpegTSContext *ts)
|
|||||||
|
|
||||||
/* scan services in a transport stream by looking at the PAT (better
|
/* scan services in a transport stream by looking at the PAT (better
|
||||||
than nothing !) */
|
than nothing !) */
|
||||||
void mpegts_scan_pat(MpegTSContext *ts)
|
static void mpegts_scan_pat(MpegTSContext *ts)
|
||||||
{
|
{
|
||||||
ts->pat_filter = mpegts_open_section_filter(ts, PAT_PID,
|
ts->pat_filter = mpegts_open_section_filter(ts, PAT_PID,
|
||||||
pat_scan_cb, ts, 1);
|
pat_scan_cb, ts, 1);
|
||||||
|
@ -34,7 +34,7 @@ typedef struct MpegTSSection {
|
|||||||
} MpegTSSection;
|
} MpegTSSection;
|
||||||
|
|
||||||
/* NOTE: 4 bytes must be left at the end for the crc32 */
|
/* NOTE: 4 bytes must be left at the end for the crc32 */
|
||||||
void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len)
|
static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len)
|
||||||
{
|
{
|
||||||
unsigned int crc;
|
unsigned int crc;
|
||||||
unsigned char packet[TS_PACKET_SIZE];
|
unsigned char packet[TS_PACKET_SIZE];
|
||||||
@ -89,7 +89,7 @@ static inline void put16(uint8_t **q_ptr, int val)
|
|||||||
*q_ptr = q;
|
*q_ptr = q;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mpegts_write_section1(MpegTSSection *s, int tid, int id,
|
static int mpegts_write_section1(MpegTSSection *s, int tid, int id,
|
||||||
int version, int sec_num, int last_sec_num,
|
int version, int sec_num, int last_sec_num,
|
||||||
uint8_t *buf, int len)
|
uint8_t *buf, int len)
|
||||||
{
|
{
|
||||||
|
@ -145,7 +145,7 @@ static int sdp_parse_rtpmap(AVCodecContext *codec, int payload_type, const char
|
|||||||
char buf[256];
|
char buf[256];
|
||||||
int i;
|
int i;
|
||||||
AVCodec *c;
|
AVCodec *c;
|
||||||
char *c_name;
|
const char *c_name;
|
||||||
|
|
||||||
/* Loop into AVRtpDynamicPayloadTypes[] and AVRtpPayloadTypes[] and
|
/* Loop into AVRtpDynamicPayloadTypes[] and AVRtpPayloadTypes[] and
|
||||||
see if we can handle this kind of payload */
|
see if we can handle this kind of payload */
|
||||||
@ -169,7 +169,7 @@ static int sdp_parse_rtpmap(AVCodecContext *codec, int payload_type, const char
|
|||||||
|
|
||||||
c = avcodec_find_decoder(codec->codec_id);
|
c = avcodec_find_decoder(codec->codec_id);
|
||||||
if (c && c->name)
|
if (c && c->name)
|
||||||
c_name = (char *)c->name;
|
c_name = c->name;
|
||||||
else
|
else
|
||||||
c_name = (char *)NULL;
|
c_name = (char *)NULL;
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ static void sdp_parse_fmtp_config(AVCodecContext *codec, char *attr, char *value
|
|||||||
|
|
||||||
typedef struct attrname_map
|
typedef struct attrname_map
|
||||||
{
|
{
|
||||||
char *str;
|
const char *str;
|
||||||
uint16_t type;
|
uint16_t type;
|
||||||
uint32_t offset;
|
uint32_t offset;
|
||||||
} attrname_map_t;
|
} attrname_map_t;
|
||||||
|
@ -51,7 +51,7 @@ typedef struct {
|
|||||||
|
|
||||||
#ifdef CONFIG_IPV6
|
#ifdef CONFIG_IPV6
|
||||||
|
|
||||||
int udp_ipv6_is_multicast_address(const struct sockaddr *addr) {
|
static int udp_ipv6_is_multicast_address(const struct sockaddr *addr) {
|
||||||
if (addr->sa_family == AF_INET)
|
if (addr->sa_family == AF_INET)
|
||||||
return IN_MULTICAST(ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr));
|
return IN_MULTICAST(ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr));
|
||||||
if (addr->sa_family == AF_INET6)
|
if (addr->sa_family == AF_INET6)
|
||||||
@ -59,7 +59,7 @@ int udp_ipv6_is_multicast_address(const struct sockaddr *addr) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int udp_ipv6_set_multicast_ttl(int sockfd, int mcastTTL, struct sockaddr *addr) {
|
static int udp_ipv6_set_multicast_ttl(int sockfd, int mcastTTL, struct sockaddr *addr) {
|
||||||
if (addr->sa_family == AF_INET) {
|
if (addr->sa_family == AF_INET) {
|
||||||
if (setsockopt(sockfd, IPPROTO_IP, IP_MULTICAST_TTL, &mcastTTL, sizeof(mcastTTL)) < 0) {
|
if (setsockopt(sockfd, IPPROTO_IP, IP_MULTICAST_TTL, &mcastTTL, sizeof(mcastTTL)) < 0) {
|
||||||
perror("setsockopt(IP_MULTICAST_TTL)");
|
perror("setsockopt(IP_MULTICAST_TTL)");
|
||||||
@ -75,7 +75,7 @@ int udp_ipv6_set_multicast_ttl(int sockfd, int mcastTTL, struct sockaddr *addr)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int udp_ipv6_join_multicast_group(int sockfd, struct sockaddr *addr) {
|
static int udp_ipv6_join_multicast_group(int sockfd, struct sockaddr *addr) {
|
||||||
struct ip_mreq mreq;
|
struct ip_mreq mreq;
|
||||||
struct ipv6_mreq mreq6;
|
struct ipv6_mreq mreq6;
|
||||||
if (addr->sa_family == AF_INET) {
|
if (addr->sa_family == AF_INET) {
|
||||||
@ -97,7 +97,7 @@ int udp_ipv6_join_multicast_group(int sockfd, struct sockaddr *addr) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int udp_ipv6_leave_multicast_group(int sockfd, struct sockaddr *addr) {
|
static int udp_ipv6_leave_multicast_group(int sockfd, struct sockaddr *addr) {
|
||||||
struct ip_mreq mreq;
|
struct ip_mreq mreq;
|
||||||
struct ipv6_mreq mreq6;
|
struct ipv6_mreq mreq6;
|
||||||
if (addr->sa_family == AF_INET) {
|
if (addr->sa_family == AF_INET) {
|
||||||
@ -119,7 +119,7 @@ int udp_ipv6_leave_multicast_group(int sockfd, struct sockaddr *addr) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct addrinfo* udp_ipv6_resolve_host(const char *hostname, int port, int type, int family, int flags) {
|
static struct addrinfo* udp_ipv6_resolve_host(const char *hostname, int port, int type, int family, int flags) {
|
||||||
struct addrinfo hints, *res = 0;
|
struct addrinfo hints, *res = 0;
|
||||||
int error;
|
int error;
|
||||||
char sport[16];
|
char sport[16];
|
||||||
@ -144,7 +144,7 @@ struct addrinfo* udp_ipv6_resolve_host(const char *hostname, int port, int type,
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int udp_ipv6_set_remote_url(URLContext *h, const char *uri) {
|
static int udp_ipv6_set_remote_url(URLContext *h, const char *uri) {
|
||||||
UDPContext *s = h->priv_data;
|
UDPContext *s = h->priv_data;
|
||||||
char hostname[256];
|
char hostname[256];
|
||||||
int port;
|
int port;
|
||||||
@ -158,7 +158,7 @@ int udp_ipv6_set_remote_url(URLContext *h, const char *uri) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int udp_ipv6_set_local(URLContext *h) {
|
static int udp_ipv6_set_local(URLContext *h) {
|
||||||
UDPContext *s = h->priv_data;
|
UDPContext *s = h->priv_data;
|
||||||
int udp_fd = -1;
|
int udp_fd = -1;
|
||||||
struct sockaddr_storage clientaddr;
|
struct sockaddr_storage clientaddr;
|
||||||
|
@ -161,7 +161,7 @@ static struct PPFilter filters[]=
|
|||||||
{NULL, NULL,0,0,0,0} //End Marker
|
{NULL, NULL,0,0,0,0} //End Marker
|
||||||
};
|
};
|
||||||
|
|
||||||
static char *replaceTable[]=
|
static const char *replaceTable[]=
|
||||||
{
|
{
|
||||||
"default", "hdeblock:a,vdeblock:a,dering:a",
|
"default", "hdeblock:a,vdeblock:a,dering:a",
|
||||||
"de", "hdeblock:a,vdeblock:a,dering:a",
|
"de", "hdeblock:a,vdeblock:a,dering:a",
|
||||||
@ -766,8 +766,8 @@ pp_mode_t *pp_get_mode_by_name_and_quality(char *name, int quality)
|
|||||||
{
|
{
|
||||||
char temp[GET_MODE_BUFFER_SIZE];
|
char temp[GET_MODE_BUFFER_SIZE];
|
||||||
char *p= temp;
|
char *p= temp;
|
||||||
char *filterDelimiters= ",/";
|
const char *filterDelimiters= ",/";
|
||||||
char *optionDelimiters= ":";
|
const char *optionDelimiters= ":";
|
||||||
struct PPMode *ppMode;
|
struct PPMode *ppMode;
|
||||||
char *filterToken;
|
char *filterToken;
|
||||||
|
|
||||||
|
@ -79,8 +79,8 @@ static inline int CLIP(int a){
|
|||||||
* Postprocessng filter.
|
* Postprocessng filter.
|
||||||
*/
|
*/
|
||||||
struct PPFilter{
|
struct PPFilter{
|
||||||
char *shortName;
|
const char *shortName;
|
||||||
char *longName;
|
const char *longName;
|
||||||
int chromDefault; ///< is chrominance filtering on by default if this filter is manually activated
|
int chromDefault; ///< is chrominance filtering on by default if this filter is manually activated
|
||||||
int minLumQuality; ///< minimum quality to turn luminance filtering on
|
int minLumQuality; ///< minimum quality to turn luminance filtering on
|
||||||
int minChromQuality; ///< minimum quality to turn chrominance filtering on
|
int minChromQuality; ///< minimum quality to turn chrominance filtering on
|
||||||
|
@ -164,7 +164,7 @@ int Configure(void **ctxp, int argc, char *argv[])
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* For mode 0 (the original one)
|
* For mode 0 (the original one)
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
void Process0(void *ctx,
|
static void Process0(void *ctx,
|
||||||
AVPicture *picture,
|
AVPicture *picture,
|
||||||
enum PixelFormat pix_fmt,
|
enum PixelFormat pix_fmt,
|
||||||
int src_width,
|
int src_width,
|
||||||
@ -276,7 +276,7 @@ void Process0(void *ctx,
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* For mode 1 (the original one)
|
* For mode 1 (the original one)
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
void Process1(void *ctx,
|
static void Process1(void *ctx,
|
||||||
AVPicture *picture,
|
AVPicture *picture,
|
||||||
enum PixelFormat pix_fmt,
|
enum PixelFormat pix_fmt,
|
||||||
int src_width,
|
int src_width,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user