From d944bfd221d1e5e574f099606f1c12e3c7ea45b4 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sun, 15 Oct 2006 09:29:02 +0000 Subject: [PATCH] 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) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20219 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_ts.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libmpdemux/demux_ts.c b/libmpdemux/demux_ts.c index 01c8ee69f5..8152883679 100644 --- a/libmpdemux/demux_ts.c +++ b/libmpdemux/demux_ts.c @@ -737,12 +737,6 @@ static off_t ts_detect_streams(demuxer_t *demuxer, tsdemux_init_t *param) 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; }