summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Huehner <stefan@huehner.org>2007-04-08 20:21:11 +0000
committerDiego Biurrun <diego@biurrun.de>2007-04-08 20:21:11 +0000
commit119e48d9607e1a43c5ff021b5345bbd62eef3926 (patch)
tree0842b3dde4ec53a39213f40e99b6577954f0c5e2
parent597cbdaf03c848877a30676b8599416d39317f35 (diff)
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
-rw-r--r--ffplay.c10
-rw-r--r--libavformat/nutdec.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/ffplay.c b/ffplay.c
index ebe31cd9b3..96615d8d6f 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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);
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);
if(screen_height<=0){
@@ -2411,14 +2411,14 @@ static void opt_frame_pix_fmt(const char *arg)
}
#ifdef CONFIG_NETWORK
-void opt_rtp_tcp(void)
+static void opt_rtp_tcp(void)
{
/* only tcp protocol */
rtsp_default_protocols = (1 << RTSP_PROTOCOL_RTP_TCP);
}
#endif
-void opt_sync(const char *arg)
+static void opt_sync(const char *arg)
{
if (!strcmp(arg, "audio"))
av_sync_type = AV_SYNC_AUDIO_MASTER;
@@ -2430,7 +2430,7 @@ void opt_sync(const char *arg)
show_help();
}
-void opt_seek(const char *arg)
+static void opt_seek(const char *arg)
{
start_time = parse_date(arg, 1);
}
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index c0f331c27c..40bf9e2c7a 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -424,11 +424,11 @@ static int decode_info_header(NUTContext *nut){
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);
}
-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);
}