diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-10-04 17:15:06 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-10-04 17:15:06 +0000 |
commit | 9fba49e0bb8722d254b20a032dda2853dd0dd40e (patch) | |
tree | 2f56ffac6a8368827ba79ae66e55fb5a9ec0464c /libmpdemux | |
parent | 79c7b5f23f01bb866ca86e7e4a341d3a6fdb16d3 (diff) | |
download | mpv-9fba49e0bb8722d254b20a032dda2853dd0dd40e.tar.bz2 mpv-9fba49e0bb8722d254b20a032dda2853dd0dd40e.tar.xz |
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
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mpg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_mpg.c b/libmpdemux/demux_mpg.c index b6b714bc1d..1ce2e1c228 100644 --- a/libmpdemux/demux_mpg.c +++ b/libmpdemux/demux_mpg.c @@ -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; |