h264: fix first macroblock bit offset calculation (ILK, SNB, IVB).
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 1 Mar 2012 17:04:56 +0000 (18:04 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 28 Dec 2012 01:14:37 +0000 (09:14 +0800)
commit29d73dc4031f65dfdac86820810a4b62858ccc66
treebe638abb82d27020d977e4fbef38fc500bae2595
parent2ac15d815cfd4d43aff75bebf6cd82039b227399
h264: fix first macroblock bit offset calculation (ILK, SNB, IVB).

Fix and simplify the scan for emulation_prevention_bytes, thus avoiding
a read beyond the end of the slice data buffer. Besides, if slice_header()
bytes are needed, use dri_bo_get_subdata() instead.

HW specific changes:
- SNB: make the HW skip the emulation prevention bytes itself.
- IVB: fix MFD_AVC_BSD_OBJECT to report the actual slice data buffer size.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
(cherry picked from commit 9b7863bf49dcf8bf1de9b45ce4e986dfd1cca418)
NEWS
src/gen6_mfd.c
src/gen7_mfd.c
src/i965_avc_bsd.c
src/i965_decoder_utils.c
src/i965_decoder_utils.h