diff mpegtsenc.c @ 1124:d3aff2c607f9 libavformat

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
author diego
date Sun, 18 Jun 2006 11:33:14 +0000
parents 2177aea28f4f
children d89d7ef290da
line wrap: on
line diff
--- a/mpegtsenc.c	Sat Jun 17 15:53:23 2006 +0000
+++ b/mpegtsenc.c	Sun Jun 18 11:33:14 2006 +0000
@@ -34,7 +34,7 @@
 } 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 @@
     *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)
 {