[MPlayer-cvslog] r36508 - trunk/libmpdemux/demux_mpg.c
reimar
subversion at mplayerhq.hu
Fri Nov 15 20:36:29 CET 2013
Author: reimar
Date: Fri Nov 15 20:36:29 2013
New Revision: 36508
Log:
Make PES detection less sensitive.
Should fix potential mis-detection of some AAC streams.
Modified:
trunk/libmpdemux/demux_mpg.c
Modified: trunk/libmpdemux/demux_mpg.c
==============================================================================
--- trunk/libmpdemux/demux_mpg.c Fri Nov 15 20:36:27 2013 (r36507)
+++ trunk/libmpdemux/demux_mpg.c Fri Nov 15 20:36:29 2013 (r36508)
@@ -871,7 +871,12 @@ do{
mp_msg(MSGT_DEMUX,MSGL_ERR,MSGTR_DoesntContainSelectedStream);
return 0;
}
- if(demux->synced==3) demux->synced=(ret==1)?2:0; // PES detect
+ if(demux->synced == 3) { // PES detect
+ update_stats(head);
+ if (ret < 0) demux->synced = 0;
+ else if (ret == 1 && num_elementary_packetsPES > 1 && !mpeg_pts_error) demux->synced = 2;
+ else ret = 0;
+ }
} else {
update_stats(head);
if(head>=0x100 && head<0x1B0)
More information about the MPlayer-cvslog
mailing list