summaryrefslogtreecommitdiff
path: root/libavformat/mpegtsenc.c
diff options
context:
space:
mode:
authorStefan Huehner <stefan@huehner.org>2006-06-18 11:33:14 +0000
committerDiego Biurrun <diego@biurrun.de>2006-06-18 11:33:14 +0000
commit7b49ce2e344a5f8864d8365d57f3c6c743f0c8f7 (patch)
tree12c908af01e95ca2df7f4ca20be592871527577e /libavformat/mpegtsenc.c
parent3b9bee88891d1c170eb42d1ef51c5cd7f19b5ba5 (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.c4
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)
{