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

Nico Sabbi nicola.sabbi at poste.it
Mon Sep 27 16:29:53 CEST 2010


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?


More information about the MPlayer-dev-eng mailing list