Browse Source

Make some functions which aren't used outside their declaring source file

and have no prototype in a header file static.
patch by Stefan Huehner, stefan huehner org

Originally committed as revision 8686 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Stefan Huehner Diego Biurrun 18 years ago
parent
commit
119e48d960
2 changed files with 7 additions and 7 deletions
  1. +5
    -5
      ffplay.c
  2. +2
    -2
      libavformat/nutdec.c

+ 5
- 5
ffplay.c View File

@@ -2378,7 +2378,7 @@ static void opt_frame_size(const char *arg)
} }
} }


void opt_width(const char *arg)
static void opt_width(const char *arg)
{ {
screen_width = atoi(arg); screen_width = atoi(arg);
if(screen_width<=0){ if(screen_width<=0){
@@ -2387,7 +2387,7 @@ void opt_width(const char *arg)
} }
} }


void opt_height(const char *arg)
static void opt_height(const char *arg)
{ {
screen_height = atoi(arg); screen_height = atoi(arg);
if(screen_height<=0){ if(screen_height<=0){
@@ -2411,14 +2411,14 @@ static void opt_frame_pix_fmt(const char *arg)
} }


#ifdef CONFIG_NETWORK #ifdef CONFIG_NETWORK
void opt_rtp_tcp(void)
static void opt_rtp_tcp(void)
{ {
/* only tcp protocol */ /* only tcp protocol */
rtsp_default_protocols = (1 << RTSP_PROTOCOL_RTP_TCP); rtsp_default_protocols = (1 << RTSP_PROTOCOL_RTP_TCP);
} }
#endif #endif


void opt_sync(const char *arg)
static void opt_sync(const char *arg)
{ {
if (!strcmp(arg, "audio")) if (!strcmp(arg, "audio"))
av_sync_type = AV_SYNC_AUDIO_MASTER; av_sync_type = AV_SYNC_AUDIO_MASTER;
@@ -2430,7 +2430,7 @@ void opt_sync(const char *arg)
show_help(); show_help();
} }


void opt_seek(const char *arg)
static void opt_seek(const char *arg)
{ {
start_time = parse_date(arg, 1); start_time = parse_date(arg, 1);
} }


+ 2
- 2
libavformat/nutdec.c View File

@@ -424,11 +424,11 @@ static int decode_info_header(NUTContext *nut){
return 0; return 0;
} }


int sp_pos_cmp(syncpoint_t *a, syncpoint_t *b){
static int sp_pos_cmp(syncpoint_t *a, syncpoint_t *b){
return (a->pos - b->pos>>32) - (b->pos - a->pos>>32); return (a->pos - b->pos>>32) - (b->pos - a->pos>>32);
} }


int sp_pts_cmp(syncpoint_t *a, syncpoint_t *b){
static int sp_pts_cmp(syncpoint_t *a, syncpoint_t *b){
return (a->ts - b->ts>>32) - (b->ts - a->ts>>32); return (a->ts - b->ts>>32) - (b->ts - a->ts>>32);
} }




Loading…
Cancel
Save