summaryrefslogtreecommitdiff
path: root/libavformat/raw.c
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2003-02-10 09:35:32 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2003-02-10 09:35:32 +0000
commit5c91a6755b6412c918e20ff4735ca30f38a12569 (patch)
tree054521cdfc6d752e89883ef3fcfc05d6c31fd94c /libavformat/raw.c
parentcd66005ddaebba2d6cb3b4eae75f70ae2446b204 (diff)
* static,const,compiler warning cleanup
Originally committed as revision 1567 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/raw.c')
-rw-r--r--libavformat/raw.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/libavformat/raw.c b/libavformat/raw.c
index 4fb25b7e03..f05305aa7e 100644
--- a/libavformat/raw.c
+++ b/libavformat/raw.c
@@ -19,28 +19,26 @@
#include "avformat.h"
/* simple formats */
-int raw_write_header(struct AVFormatContext *s)
+static int raw_write_header(struct AVFormatContext *s)
{
return 0;
}
-int raw_write_packet(struct AVFormatContext *s,
- int stream_index,
- unsigned char *buf, int size, int force_pts)
+static int raw_write_packet(struct AVFormatContext *s, int stream_index,
+ unsigned char *buf, int size, int force_pts)
{
put_buffer(&s->pb, buf, size);
put_flush_packet(&s->pb);
return 0;
}
-int raw_write_trailer(struct AVFormatContext *s)
+static int raw_write_trailer(struct AVFormatContext *s)
{
return 0;
}
/* raw input */
-static int raw_read_header(AVFormatContext *s,
- AVFormatParameters *ap)
+static static int raw_read_header(AVFormatContext *s, AVFormatParameters *ap)
{
AVStream *st;
int id;
@@ -78,8 +76,7 @@ static int raw_read_header(AVFormatContext *s,
#define RAW_PACKET_SIZE 1024
-int raw_read_packet(AVFormatContext *s,
- AVPacket *pkt)
+static int raw_read_packet(AVFormatContext *s, AVPacket *pkt)
{
int ret, size;
// AVStream *st = s->streams[0];
@@ -101,7 +98,7 @@ int raw_read_packet(AVFormatContext *s,
return ret;
}
-int raw_read_close(AVFormatContext *s)
+static int raw_read_close(AVFormatContext *s)
{
return 0;
}
@@ -390,8 +387,7 @@ PCMDEF(mulaw, "pcm mu law format",
PCMDEF(alaw, "pcm A law format",
"al", CODEC_ID_PCM_ALAW)
-int rawvideo_read_packet(AVFormatContext *s,
- AVPacket *pkt)
+static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt)
{
int packet_size, ret, width, height;
AVStream *st = s->streams[0];