changeset 24681:1ecf2ff1d512

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
author nicodvb
date Thu, 04 Oct 2007 17:15:06 +0000
parents 4d56303b85ab
children 67d29f7793e6
files libmpdemux/demux_mpg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;