variable initialization (because of a gcc warning)
authorGlenn A. Serre <gaserre@spiresoftware.com>
Tue, 29 May 2007 08:19:37 +0000 (08:19 +0000)
committerBenoit Fouet <benoit.fouet@free.fr>
Tue, 29 May 2007 08:19:37 +0000 (08:19 +0000)
patch by Glenn A. Serre gaserre spiresoftware com

Originally committed as revision 9146 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mpegts.c

index 35da0f0..df75189 100644 (file)
@@ -397,7 +397,7 @@ static void pmt_cb(void *opaque, const uint8_t *section, int section_len)
     int program_info_length, pcr_pid, pid, stream_type;
     int desc_list_len, desc_len, desc_tag;
     int comp_page = 0, anc_page = 0; /* initialize to kill warnings */
-    char language[4];
+    char language[4] = {0}; /* initialize to kill warnings */
 
 #ifdef DEBUG_SI
     av_log(ts->stream, AV_LOG_DEBUG, "PMT: len %i\n", section_len);