Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-intel-common-vaapi: Commit

hardware/intel/common/vaapi


Commit MetaInfo

Révision6b26f3fb7367836291db40dd6e36cf6762ab32c8 (tree)
l'heure2017-08-08 15:39:09
AuteurMark Thompson <sw@jkqx...>
CommiterXiang, Haihao

Message de Log

Do not apply AUD hack to non-RawData headers

Headers which are not VAEncPackedHeaderRawData should not be inserted
at the front of the access unit by the AUD hack - if they are, they will
end up duplicated if they match the test because they are also placed
later in the access unit.

Signed-off-by: Mark Thompson <sw@jkqxz.net>

Change Summary

Modification

--- a/src/gen9_avc_encoder.c
+++ b/src/gen9_avc_encoder.c
@@ -6387,6 +6387,8 @@ gen9_mfc_avc_insert_aud_packed_data(VADriverContextP ctx,
63876387 nal_type = (unsigned char *)header_data;
63886388
63896389 param = (VAEncPackedHeaderParameterBuffer *)(encode_state->packed_header_params_ext[start_index + i]->buffer);
6390+ if (param->type != VAEncPackedHeaderRawData)
6391+ continue;
63906392
63916393 length_in_bits = param->bit_length;
63926394
Afficher sur ancien navigateur de dépôt.