Mercurial > mplayer.hg
changeset 5804:5a040bd83630
more strict check for .mp3
author | arpi |
---|---|
date | Tue, 23 Apr 2002 23:21:19 +0000 |
parents | 4febd266489c |
children | c63b519bd183 |
files | libmpdemux/demuxer.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demuxer.c Tue Apr 23 22:57:49 2002 +0000 +++ b/libmpdemux/demuxer.c Tue Apr 23 23:21:19 2002 +0000 @@ -659,7 +659,9 @@ } 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) +//MPEG packet stats: p100: 458 p101: 458 PES: 0 MP3: 1103 (.m2v) + if(num_mp3audio_packets>50 && num_mp3audio_packets>2*num_elementary_packets100 + && abs(num_elementary_packets100-num_elementary_packets101)>2) break; // it's .MP3 // some hack to get meaningfull error messages to our unhappy users: if(num_elementary_packets100>=2 && num_elementary_packets101>=2 &&