mirror of
https://github.com/mpv-player/mpv
synced 2025-02-26 02:05:31 +00:00
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24701 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
79c7b5f23f
commit
9fba49e0bb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user