# HG changeset patch # User nicodvb # Date 1191518106 0 # Node ID 1ecf2ff1d512dadc7cd6cdbec2b1faae7008a6c8 # Parent 4d56303b85abae31c887bd1ff73fa5f1e27b37b3 in update_stats() removed a wrong 'else' that would prevent h264 headers to be recognized: all 0x12x headers were accounted for only in num_elementary_packets12x. Fixes detection of certain H264 in ES/PS streams diff -r 4d56303b85ab -r 1ecf2ff1d512 libmpdemux/demux_mpg.c --- a/libmpdemux/demux_mpg.c Thu Oct 04 12:44:16 2007 +0000 +++ b/libmpdemux/demux_mpg.c Thu Oct 04 17:15:06 2007 +0000 @@ -636,7 +636,7 @@ else if(head==0x1BD || (0x1C0<=head && head<=0x1EF)) num_elementary_packetsPES++; else if(head>=0x120 && head<=0x12F) ++num_elementary_packets12x; - else if(head>=0x100 && head<0x1B0) + if(head>=0x100 && head<0x1B0) { if((head&~0x60) == 0x101) ++num_h264_slice; else if((head&~0x60) == 0x102) ++num_h264_dpa;