Skip to content
Permalink
Browse files

Fix BBC frame detection.

Patch is by Paul Gardiner with some very minor tweaks by me.

Paul's comments:

Remove all assumptions of alignment between NALs and the packets passed into
the parser.

Prior to parsing the bodies of the various NALs, remove any
emulation-prevention bytes. This should improve results for all H264, not
just BBC HD.

Update the code for reading profile>=100 versions of the SPS.  The
scaling-list-present flag was being read, but not the lists themselves, and
since the log2_max_frame_num_minus4 field occurs after, frame numbers were
not being read correctly from slices. That was probably the biggest
contributor to BBC HD problems.

Fixes #9410
  • Loading branch information
jpoet committed Feb 6, 2011
1 parent 3bf04db commit c9c2545ac67584af5e8d705486bbb294f3e7da50
Showing with 331 additions and 120 deletions.
  1. +309 −115 mythtv/libs/libmythtv/mpeg/H264Parser.cpp
  2. +22 −5 mythtv/libs/libmythtv/mpeg/H264Parser.h

0 comments on commit c9c2545

Please sign in to comment.
You can’t perform that action at this time.