diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-14 11:18:19 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-14 11:18:19 +0000 |
commit | 14e3192c3d1d76a4d1dde6ccbcea206b956b4fad (patch) | |
tree | fc75114d3cf8f1eb23be64b12c105b0c1c1a22b2 | |
parent | 606f762c99783dc1b9e53b1ebe5817f886959c2a (diff) |
mp3 detection fixed...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5069 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/demuxer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c index 686854e938..e68ee5aebf 100644 --- a/libmpdemux/demuxer.c +++ b/libmpdemux/demuxer.c @@ -603,6 +603,8 @@ if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_MPEG_PS){ } else { printf("MPEG packet stats: p100: %d p101: %d PES: %d MP3: %d \n", num_elementary_packets100,num_elementary_packets101,num_elementary_packetsPES,num_mp3audio_packets); + if(num_mp3audio_packets>50 && num_mp3audio_packets>2*num_elementary_packets100) + break; // it's .MP3 // some hack to get meaningfull error messages to our unhappy users: if(num_elementary_packets100>=2 && num_elementary_packets101>=2 && abs(num_elementary_packets101+8-num_elementary_packets100)<16){ |