changeset 2101:8c239da52650 libavformat

variable initialization (because of a gcc warning) patch by Glenn A. Serre gaserre spiresoftware com
author benoit
date Tue, 29 May 2007 08:19:37 +0000
parents 33a90cc1a5de
children ea6094e10af8
files mpegts.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegts.c	Sun May 27 08:06:45 2007 +0000
+++ b/mpegts.c	Tue May 29 08:19:37 2007 +0000
@@ -397,7 +397,7 @@
     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);