[SCM] libav/experimental: variable initialization (because of a gcc warning) patch by Glenn A. Serre gaserre spiresoftware com

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:00:34 UTC 2013


The following commit has been merged in the experimental branch:
commit 828bb5f1f6cd51f8fb7c9516c25176789ae1a500
Author: Glenn A. Serre <gaserre at spiresoftware.com>
Date:   Tue May 29 08:19:37 2007 +0000

    variable initialization (because of a gcc warning)
    patch by Glenn A. Serre gaserre spiresoftware com
    
    Originally committed as revision 9146 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 35da0f0..df75189 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -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);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list