[MPlayer-cvslog] r24701 - trunk/libmpdemux/demux_mpg.c
nicodvb
subversion at mplayerhq.hu
Thu Oct 4 19:15:06 CEST 2007
Author: nicodvb
Date: Thu Oct 4 19:15:06 2007
New Revision: 24701
Log:
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
Modified:
trunk/libmpdemux/demux_mpg.c
Modified: trunk/libmpdemux/demux_mpg.c
==============================================================================
--- trunk/libmpdemux/demux_mpg.c (original)
+++ trunk/libmpdemux/demux_mpg.c Thu Oct 4 19:15:06 2007
@@ -636,7 +636,7 @@ static inline void update_stats(int head
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;
More information about the MPlayer-cvslog
mailing list