Mercurial > libavformat.hg
changeset 4868:8ee3deef8b44 libavformat
remove useless wrapper
author | bcoudurier |
---|---|
date | Sun, 12 Apr 2009 09:04:12 +0000 |
parents | 9ff7c0af5971 |
children | b23a7b215104 |
files | mpegts.c |
diffstat | 1 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegts.c Sun Apr 12 08:53:22 2009 +0000 +++ b/mpegts.c Sun Apr 12 09:04:12 2009 +0000 @@ -789,13 +789,6 @@ } } -/* scan services in a transport stream by looking at the SDT */ -static void mpegts_scan_sdt(MpegTSContext *ts) -{ - mpegts_open_section_filter(ts, SDT_PID, - sdt_cb, ts, 1); -} - static int64_t get_pts(const uint8_t *p) { int64_t pts = (int64_t)((p[0] >> 1) & 0x07) << 30; @@ -1264,7 +1257,8 @@ /* first do a scaning to get all the services */ url_fseek(pb, pos, SEEK_SET); - mpegts_scan_sdt(ts); + + mpegts_open_section_filter(ts, SDT_PID, sdt_cb, ts, 1); mpegts_open_section_filter(ts, PAT_PID, pat_cb, ts, 1);