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

Måns Rullgård mans
Thu Apr 15 16:08:29 CEST 2010

Joakim Plate <elupus at ecce.se> writes:

> M?ns Rullg?rd <mans <at> mansr.com> writes:
>> Baptiste Coudurier <baptiste.coudurier <at> gmail.com> writes:
>> > On 04/11/2010 04:29 PM, elupus wrote:
>> >> Hi,
>> >>
>> >> This patch avoids av_find_stream_info searching up to probesize for mpegts.
>> >> It only needs to search until we have found PMT/PAT, after that no new
>> >> streams should show up.
>> >
>> > This is wrong. Nothing prevents a new PMT from appearing during
>> > av_find_stream_info.
>> Nor anywhere later in the stream.
> 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.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list