[Ffmpeg-cvslog] CVS: ffmpeg ffmpeg.c, 1.366, 1.367 output_example.c, 1.18, 1.19
Måns Rullgård CVS
mru
Tue Jan 31 00:33:20 CET 2006
Update of /cvsroot/ffmpeg/ffmpeg
In directory mail:/var2/tmp/cvs-serv24981
Modified Files:
ffmpeg.c output_example.c
Log Message:
add static keyword to some functions
patch by Dieter <freebsd at sopwith solgatos com>
Index: ffmpeg.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/ffmpeg.c,v
retrieving revision 1.366
retrieving revision 1.367
diff -u -d -r1.366 -r1.367
--- ffmpeg.c 28 Jan 2006 16:23:04 -0000 1.366
+++ ffmpeg.c 30 Jan 2006 23:33:16 -0000 1.367
@@ -3790,7 +3790,7 @@
exit(1);
}
-void parse_matrix_coeffs(uint16_t *dest, const char *str)
+static void parse_matrix_coeffs(uint16_t *dest, const char *str)
{
int i;
const char *p = str;
@@ -3807,13 +3807,13 @@
}
}
-void opt_inter_matrix(const char *arg)
+static void opt_inter_matrix(const char *arg)
{
inter_matrix = av_mallocz(sizeof(uint16_t) * 64);
parse_matrix_coeffs(inter_matrix, arg);
}
-void opt_intra_matrix(const char *arg)
+static void opt_intra_matrix(const char *arg)
{
intra_matrix = av_mallocz(sizeof(uint16_t) * 64);
parse_matrix_coeffs(intra_matrix, arg);
Index: output_example.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/output_example.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- output_example.c 17 Dec 2005 18:14:26 -0000 1.18
+++ output_example.c 30 Jan 2006 23:33:16 -0000 1.19
@@ -51,7 +51,7 @@
/*
* add an audio output stream
*/
-AVStream *add_audio_stream(AVFormatContext *oc, int codec_id)
+static AVStream *add_audio_stream(AVFormatContext *oc, int codec_id)
{
AVCodecContext *c;
AVStream *st;
@@ -73,7 +73,7 @@
return st;
}
-void open_audio(AVFormatContext *oc, AVStream *st)
+static void open_audio(AVFormatContext *oc, AVStream *st)
{
AVCodecContext *c;
AVCodec *codec;
@@ -124,7 +124,7 @@
/* prepare a 16 bit dummy audio frame of 'frame_size' samples and
'nb_channels' channels */
-void get_audio_frame(int16_t *samples, int frame_size, int nb_channels)
+static void get_audio_frame(int16_t *samples, int frame_size, int nb_channels)
{
int j, i, v;
int16_t *q;
@@ -139,7 +139,7 @@
}
}
-void write_audio_frame(AVFormatContext *oc, AVStream *st)
+static void write_audio_frame(AVFormatContext *oc, AVStream *st)
{
AVCodecContext *c;
AVPacket pkt;
@@ -163,7 +163,7 @@
}
}
-void close_audio(AVFormatContext *oc, AVStream *st)
+static void close_audio(AVFormatContext *oc, AVStream *st)
{
avcodec_close(st->codec);
@@ -179,7 +179,7 @@
int frame_count, video_outbuf_size;
/* add a video output stream */
-AVStream *add_video_stream(AVFormatContext *oc, int codec_id)
+static AVStream *add_video_stream(AVFormatContext *oc, int codec_id)
{
AVCodecContext *c;
AVStream *st;
@@ -224,7 +224,7 @@
return st;
}
-AVFrame *alloc_picture(int pix_fmt, int width, int height)
+static AVFrame *alloc_picture(int pix_fmt, int width, int height)
{
AVFrame *picture;
uint8_t *picture_buf;
@@ -244,7 +244,7 @@
return picture;
}
-void open_video(AVFormatContext *oc, AVStream *st)
+static void open_video(AVFormatContext *oc, AVStream *st)
{
AVCodec *codec;
AVCodecContext *c;
@@ -293,7 +293,7 @@
}
/* prepare a dummy image */
-void fill_yuv_image(AVFrame *pict, int frame_index, int width, int height)
+static void fill_yuv_image(AVFrame *pict, int frame_index, int width, int height)
{
int x, y, i;
@@ -315,7 +315,7 @@
}
}
-void write_video_frame(AVFormatContext *oc, AVStream *st)
+static void write_video_frame(AVFormatContext *oc, AVStream *st)
{
int out_size, ret;
AVCodecContext *c;
@@ -380,7 +380,7 @@
frame_count++;
}
-void close_video(AVFormatContext *oc, AVStream *st)
+static void close_video(AVFormatContext *oc, AVStream *st)
{
avcodec_close(st->codec);
av_free(picture->data[0]);
More information about the ffmpeg-cvslog
mailing list