summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-06-04 11:25:33 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-06-04 11:25:33 +0000
commit0618bb1c5b402d0886724b9ef46a6871d3c8a323 (patch)
tree490fd3c28247990d083feff7bfb3563165a068c2 /libavformat/mpegts.c
parentc11aac6cdae5708daf4fdbd88ba411b456b30fca (diff)
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 ... Originally committed as revision 9199 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 39188978dd..742b45ccd9 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -584,8 +584,6 @@ static void pat_scan_cb(void *opaque, const uint8_t *section, int section_len)
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 @@ static void pat_scan_cb(void *opaque, const uint8_t *section, int section_len)
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;