mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
gstvaapiencoder: Use hardcoded packed_raw_data flag for JPEG Encoding
This commit is contained in:
parent
3332c25ef6
commit
beefadc7b7
1 changed files with 9 additions and 0 deletions
|
@ -547,6 +547,15 @@ get_packed_headers (GstVaapiEncoder * encoder)
|
|||
|
||||
encoder->got_packed_headers = TRUE;
|
||||
encoder->packed_headers = cdata->packed_headers & value;
|
||||
|
||||
if (cdata->codec == GST_VAAPI_CODEC_JPEG) {
|
||||
#if !VA_CHECK_VERSION(0,37,1)
|
||||
encoder->packed_headers = VA_ENC_PACKED_HEADER_RAW_DATA;
|
||||
GST_DEBUG ("Hard coding the packed header flag value to VA_ENC_PACKED_HEADER_RAW_DATA,"
|
||||
"This is a work around for the driver bug");
|
||||
#endif
|
||||
}
|
||||
|
||||
return encoder->packed_headers;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue