Mercurial > mplayer.hg
changeset 2881:79142edcad77
001.vdr fix
author | arpi |
---|---|
date | Tue, 13 Nov 2001 21:38:29 +0000 |
parents | d6343a243515 |
children | 2fd108f6bc68 |
files | libmpdemux/demuxer.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demuxer.c Tue Nov 13 21:18:25 2001 +0000 +++ b/libmpdemux/demuxer.c Tue Nov 13 21:38:29 2001 +0000 @@ -431,9 +431,11 @@ mp_msg(MSGT_DEMUXER,MSGL_INFO,MSGTR_DetectedMPEGPSfile); file_format=DEMUXER_TYPE_MPEG_PS; } else { + printf("MPEG packet stats: p100: %d p101: %d PES: %d \n", + num_elementary_packets100,num_elementary_packets101,num_elementary_packetsPES); // some hack to get meaningfull error messages to our unhappy users: if(num_elementary_packets100>=2 && num_elementary_packets101>=2 && - abs(num_elementary_packets101-num_elementary_packets100)<8){ + abs(num_elementary_packets101+8-num_elementary_packets100)<16){ if(num_elementary_packetsPES>=4 && num_elementary_packetsPES>=num_elementary_packets100-4){ --pes;continue; // tricky... }