H264_Encoding: Parse the packed header data from user to fix the hacked code of HW...
authorZhao, Yakui <yakui.zhao@intel.com>
Mon, 26 May 2014 00:40:15 +0000 (08:40 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 16 Jun 2014 03:53:35 +0000 (11:53 +0800)
commit772e94298f2fc42da1f9be69de80664d9055b685
treeed7ec26230fde738eccdff1801ef5a981311d148
parent9aec3ffc5b1cf05ae19b70580506bb53eefc245b
H264_Encoding: Parse the packed header data from user to fix the hacked code of HW skip bytes

When the packed header data from user is inserted into the coded clip, it uses
the hacked code to check the number of HW skip emulation bytes. This is wrong.
So fix it.
Of course if the packed header data is generated by the driver, it is
unnecessary to check it and it can still use the pre-defined number of HW
skip bytes.

V1->V2: Based on Gwenole's comment more nal_unit_type is added.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit cd518563f239cb8523c58010a695098465a4f04e)
src/gen6_mfc_common.c