[MPlayer-dev-eng] [PATCH] Increase TS demux stream detection size

Vlad Seryakov vseryakov at gmail.com
Mon Sep 27 18:46:31 CEST 2010


On Sep 27, 2010, at 10:29 AM, Nico Sabbi wrote:

> Vlad Seryakov ha scritto:
>> 
>> This is the new patch without hardcoded value but depending on TS_MAX_PROBE_SIZE instead.
>> 
>>   ts.txt
>> 
>> 
>> Index: libmpdemux/demux_ts.c
>> ===================================================================
>> --- libmpdemux/demux_ts.c	(revision 32345)
>> +++ libmpdemux/demux_ts.c	(working copy)
>> @@ -839,7 +839,7 @@
>>  			if(audio_found&&  (param->apid == es.pid)&&  (! video_found))
>>  				num_packets++;
>> 
>> -			if((has_tables==0)&&  (video_found&&  audio_found)&&  (pos>= 1000000))
>> +			if((has_tables==0)&&  (video_found&&  audio_found)&&  (pos>= TS_MAX_PROBE_SIZE * 2))
>>  				break;
>>  		}
>>  	}
>>   
> 
> I was wrong in my previous mail, but why do you multiply  TS_MAX_PROBE_SIZE  by 2?

As i understand, this is the place with absolute max limit of how much TS data can be examined, so instead of arbitrary 1M i put twice of the default max size, as i said this number is completely out of blue, in the old days, 1M was pretty big number for SD content but nowadays with HD and just slightly delayed PAT/PMT transmissions this is nothing. 



More information about the MPlayer-dev-eng mailing list