[Libva] [PATCH 1/3] encoder: h264: Fix skip_emul_byte_count while inserting SEI header

sreerenj.balachandran at intel.com sreerenj.balachandran at intel.com
Fri Aug 29 07:24:39 PDT 2014


From: Sreerenj Balachandran <sreerenj.balachandran at intel.com>

The skip_emul_byte_count should include the start code and nal_unit
type, which is equl to five when the driver insert SEI headers.
---
 src/gen6_mfc_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gen6_mfc_common.c b/src/gen6_mfc_common.c
index 8eea8a2..fe41dac 100644
--- a/src/gen6_mfc_common.c
+++ b/src/gen6_mfc_common.c
@@ -603,7 +603,7 @@ void intel_mfc_avc_pipeline_header_programing(VADriverContextP ctx,
                                    (unsigned int *)sei_data,
                                    ALIGN(length_in_bits, 32) >> 5,
                                    length_in_bits & 0x1f,
-                                   4,   
+                                   5,
                                    0,   
                                    0,   
                                    1,
-- 
1.9.1



More information about the Libva mailing list