hardware/intel/common/vaapi
Revisión | 6b26f3fb7367836291db40dd6e36cf6762ab32c8 (tree) |
---|---|
Tiempo | 2017-08-08 15:39:09 |
Autor | Mark Thompson <sw@jkqx...> |
Commiter | Xiang, Haihao |
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>
@@ -6387,6 +6387,8 @@ gen9_mfc_avc_insert_aud_packed_data(VADriverContextP ctx, | ||
6387 | 6387 | nal_type = (unsigned char *)header_data; |
6388 | 6388 | |
6389 | 6389 | param = (VAEncPackedHeaderParameterBuffer *)(encode_state->packed_header_params_ext[start_index + i]->buffer); |
6390 | + if (param->type != VAEncPackedHeaderRawData) | |
6391 | + continue; | |
6390 | 6392 | |
6391 | 6393 | length_in_bits = param->bit_length; |
6392 | 6394 |