]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix variable initialization in psi_parse_pmt() 350/head
authorJaroslav Kysela <perex@perex.cz>
Sat, 15 Mar 2014 21:22:26 +0000 (22:22 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 15 Mar 2014 21:30:55 +0000 (22:30 +0100)
src/input/mpegts/dvb_psi.c

index 866c264fcd21e52fdb19e3015fbcfd3ab519c1c9..6e10ad294e8fdec61bdec5dcdf759ad59c08b20a 100644 (file)
@@ -1332,10 +1332,10 @@ psi_parse_pmt
   int composition_id;
   int ancillary_id;
   int version;
-  int position = 0;
-  int tt_position = 1000;
-  const char *lang = NULL;
-  uint8_t audio_type = 0;
+  int position;
+  int tt_position;
+  const char *lang;
+  uint8_t audio_type;
 
   caid_t *c, *cn;
 
@@ -1394,6 +1394,10 @@ psi_parse_pmt
     hts_stream_type = SCT_UNKNOWN;
     composition_id = -1;
     ancillary_id = -1;
+    position = 0;
+    tt_position = 1000;
+    lang = NULL;
+    audio_type = 0;
 
     switch(estype) {
     case 0x01: