blob: 8d42c945ae3a295c8099b92b16e88a83da0b1e16 [file] [log] [blame]
From f35dfea06a622513645b6725f57b46badaa0a937 Mon Sep 17 00:00:00 2001
From: Abhishek Kumar <abhishek4.kumar@intel.com>
Date: Fri, 12 Jun 2020 11:29:18 +0530
Subject: [PATCH] [ENCODE] change slice header prefix for AVC Vdenc
Currently in case of Vdenc slice header prefix is 0x000001 (3bytes)
and in case of VME it is 0x00000001 (4 bytes) , so change slice header
prefix to 4 bytes for vdenc(same as i965 driver).
---
media_driver/agnostic/common/codec/hal/codechal_encode_avc_base.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/media_driver/agnostic/common/codec/hal/codechal_encode_avc_base.cpp b/media_driver/agnostic/common/codec/hal/codechal_encode_avc_base.cpp
index 840fbd898a00..604519bc7fad 100644
--- a/media_driver/agnostic/common/codec/hal/codechal_encode_avc_base.cpp
+++ b/media_driver/agnostic/common/codec/hal/codechal_encode_avc_base.cpp
@@ -1763,7 +1763,7 @@ MOS_STATUS CodecHalAvcEncode_PackSliceHeader(
// zero byte shall exist when the byte stream NAL unit syntax structure contains the first
// NAL unit of an access unit in decoding order, as specified by subclause 7.4.1.2.3.
// VDEnc Slice header packing handled by PAK does not need the 0 byte inserted
- if (params->UserFlags.bDisableAcceleratorHeaderPacking && (!params->bVdencEnabled))
+ if (params->UserFlags.bDisableAcceleratorHeaderPacking)
{
*bsbuffer->pCurrent = 0;
bsbuffer->pCurrent++;
--
2.7.4