diff options
author | Stefan Huehner <stefan@huehner.org> | 2006-06-18 15:33:14 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-06-18 15:33:14 +0400 |
commit | 7b49ce2e344a5f8864d8365d57f3c6c743f0c8f7 (patch) | |
tree | 12c908af01e95ca2df7f4ca20be592871527577e /libavformat/mpegtsenc.c | |
parent | 3b9bee88891d1c170eb42d1ef51c5cd7f19b5ba5 (diff) |
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
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r-- | libavformat/mpegtsenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 7086b5dc89..ad19516b46 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -34,7 +34,7 @@ typedef struct MpegTSSection { } MpegTSSection; /* 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 char packet[TS_PACKET_SIZE]; @@ -89,7 +89,7 @@ static inline void put16(uint8_t **q_ptr, int val) *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, uint8_t *buf, int len) { |