# HG changeset patch # User nicodvb # Date 1160904542 0 # Node ID cc316541564f5b35c34cfe599d970fa126e3dfcc # Parent ac72ae437e3022ef7a905b76bf15be64cb8aa34a during stream detection always parse ts_probesize bytes (even with -nosound set), otherwise the demuxer may not have a chance to correctly identify the stream type (e.g. H264 was misidentified as MPEG2 with -nosound set) diff -r ac72ae437e30 -r cc316541564f libmpdemux/demux_ts.c --- a/libmpdemux/demux_ts.c Sat Oct 14 21:30:41 2006 +0000 +++ b/libmpdemux/demux_ts.c Sun Oct 15 09:29:02 2006 +0000 @@ -737,12 +737,6 @@ if(audio_found && (param->apid == es.pid) && (! video_found)) num_packets++; - if((req_apid == -2) && video_found) - { - param->atype = 0; - break; - } - if((has_tables==0) && (video_found && audio_found) && (pos >= 1000000)) break; }