[Libva] [PATCH 2/3] gen6_mfc_common: Do not use the reserved nal unit types
sreerenj.balachandran at intel.com
sreerenj.balachandran at intel.com
Fri Aug 29 07:24:40 PDT 2014
From: Sreerenj Balachandran <sreerenj.balachandran at intel.com>
The nal_unit_type 21 is reserved, don't take this into account
while doing the nal unit header bytes counting.
---
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 fe41dac..e68528e 100644
--- a/src/gen6_mfc_common.c
+++ b/src/gen6_mfc_common.c
@@ -494,7 +494,7 @@ static int intel_avc_find_skipemulcnt(unsigned char *buf, int bits_length)
nal_unit_type = (buf[skip_cnt]) & NAL_UNIT_TYPE_MASK;
skip_cnt += 1;
- if (nal_unit_type == 14 || nal_unit_type == 20 || nal_unit_type == 21) {
+ if (nal_unit_type == 14 || nal_unit_type == 20) {
/* more unit header bytes are accounted for MVC/SVC */
skip_cnt += 3;
}
--
1.9.1
More information about the Libva
mailing list