aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-04-12 08:52:16 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-04-12 08:52:16 +0000
commit7b9677f6b07d572a13271455e3252fbdf097916d (patch)
tree4aed7bfec52df5692e3e17cc5577059919728a1b /libavformat/mpegts.c
parentf28c4e756f6dc469127deefa116a7e0673f05927 (diff)
downloadffmpeg-7b9677f6b07d572a13271455e3252fbdf097916d.tar.gz
remove useless wrapper
Originally committed as revision 18463 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index f2591e6593..ab3d4e8d5c 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 */