From e768d4d50f7458fcc37de5432a7e47b6850ad01f Mon Sep 17 00:00:00 2001 From: bcoudurier Date: Sun, 12 Apr 2009 08:52:16 +0000 Subject: [PATCH] remove useless wrapper git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18463 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavformat/mpegts.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index f2591e659..ab3d4e8d5 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -711,12 +711,6 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len mpegts_close_filter(ts, filter); } -static void mpegts_set_service(MpegTSContext *ts) -{ - mpegts_open_section_filter(ts, PAT_PID, - pat_cb, ts, 1); -} - static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len) { MpegTSContext *ts = filter->u.section_filter.opaque; @@ -1272,7 +1266,7 @@ static int mpegts_read_header(AVFormatContext *s, url_fseek(pb, pos, SEEK_SET); mpegts_scan_sdt(ts); - mpegts_set_service(ts); + mpegts_open_section_filter(ts, PAT_PID, pat_cb, ts, 1); handle_packets(ts, s->probesize); /* if could not find service, enable auto_guess */ -- 2.39.2