[FFmpeg-devel] [PATCH] When PMT is found, we have found mpegts header information

Joakim Plate elupus
Thu Apr 15 17:34:54 CEST 2010

M?ns Rullg?rd <mans <at> mansr.com> writes:
> >
> > While i agree, should we always let av_find_stream_info search the whole
> > file to sure we find all stream??? That doesn't make sence either. 
> Of course not.  The correct solution would be a design allowing
> dynamic addition and removal of streams.  Unfortunately, FFmpeg isn't
> designed like that.

Thought i'd just mention that current mpegts demuxer already stops 
searching for pmt after the first one is found... At the end of 
pmt_cb you have "mpegts_close_filter(ts, filter);", but 
av_find_stream_info keeps on going even if nothing will ever happen...

Soo, can we please accept this patch, since it's only effect is to 
reduce startup time.. :)


More information about the ffmpeg-devel mailing list