[Libva] [PATCH 2/3] gen6_mfc_common: Do not use the reserved nal unit types

Sreerenj sreerenj.balachandran at intel.com
Fri Aug 29 08:02:33 PDT 2014


On 29.08.2014 17:49, Gwenole Beauchesne wrote:
> Hi,
>
> 2014-08-29 16:24 GMT+02:00  <sreerenj.balachandran at intel.com>:
>> 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.
> This is valid extension for MVCD. So, should someone, somehow,
> generates MVCD packed headers, that could be needed. This is
> hypothetitical, but at least, this is readily future proof. e.g. we
> could imagine someone generates and stiches in the MVCD bits through
> additional SW support.
>


That make sense, Thanks!


>> ---
>>   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
>>
>> _______________________________________________
>> Libva mailing list
>> Libva at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/libva
>
> Thanks,

-- 
Thanks
Sree

---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


More information about the Libva mailing list