summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_ts.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-15 09:29:02 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-15 09:29:02 +0000
commitd944bfd221d1e5e574f099606f1c12e3c7ea45b4 (patch)
tree1d0297030e1e9eb885458cff8d4d5a290294d81b /libmpdemux/demux_ts.c
parentab9e999c3552817b37ec680d0dd6df9a10d1f340 (diff)
downloadmpv-d944bfd221d1e5e574f099606f1c12e3c7ea45b4.tar.bz2
mpv-d944bfd221d1e5e574f099606f1c12e3c7ea45b4.tar.xz
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
Diffstat (limited to 'libmpdemux/demux_ts.c')
-rw-r--r--libmpdemux/demux_ts.c6
1 files changed, 0 insertions, 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;
}