OSDN Git Service

mpegts: stop analyzing when pmt for all programs have been found
authorJoakim Plate <elupus@ecce.se>
Sun, 15 Dec 2013 14:58:31 +0000 (15:58 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 15 Dec 2013 20:43:19 +0000 (21:43 +0100)
commit6eda91ad54fd3214610edb1e4a5adb58806c243e
treee03108b056d4e043770abe917844e9c59516a763
parentd600b18f224e02f8bfc6660bfa442e7ff3fb057c
mpegts: stop analyzing when pmt for all programs have been found

This disables NOHEADER after finding PMT for all programs to
avoid find_stream_info always exhausting probe size for mpegts.

This is very important for live streams since read speed
will be limited. rtsp, udp and any protocol streaming a live
mpegts will have dramatically faster startup time.

Note, lack of codec parameters for streams can still cause
the full probe size to be exhausted.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegts.c