changeset 2127:e70e06400158 libavformat

remove fake service/provider names used for PAT this allows us to distingush if the info came from SDT or PAT and will allow to dyamically fill info in ...
author michael
date Mon, 04 Jun 2007 11:25:33 +0000
parents d21480a68906
children 42fe0d356a7d
files mpegts.c
diffstat 1 files changed, 1 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/mpegts.c	Mon Jun 04 08:53:08 2007 +0000
+++ b/mpegts.c	Mon Jun 04 11:25:33 2007 +0000
@@ -584,8 +584,6 @@
     SectionHeader h1, *h = &h1;
     const uint8_t *p, *p_end;
     int sid, pmt_pid;
-    char *provider_name, *name;
-    char buf[256];
 
 #ifdef DEBUG_SI
     av_log(ts->stream, AV_LOG_DEBUG, "PAT:\n");
@@ -611,16 +609,7 @@
         if (sid == 0x0000) {
             /* NIT info */
         } else {
-            /* add the service with a dummy name */
-            snprintf(buf, sizeof(buf), "Service %x\n", sid);
-            name = av_strdup(buf);
-            provider_name = av_strdup("");
-            if (name && provider_name) {
-                new_service(ts, sid, provider_name, name);
-            } else {
-                av_freep(&name);
-                av_freep(&provider_name);
-            }
+            new_service(ts, sid, NULL, NULL);
         }
     }
     ts->stop_parse = 1;