mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
libs: encoder: h264: handle deprecated enum
In VA-API 1.0 the enum VAEncPackedHeaderH264_SEI is deprecated, and instead VAEncPackedHeaderRawData should be used. This patch creates a compatibility symbol, VA_ENC_PACKED_HEADER_H264_SEI, to expose the used enum according the VA-API version. https://bugzilla.gnome.org/show_bug.cgi?id=784398
This commit is contained in:
parent
585628d2a2
commit
b942f9e17f
2 changed files with 3 additions and 1 deletions
|
@ -39,8 +39,10 @@
|
|||
|
||||
#if VA_CHECK_VERSION(1,0,0)
|
||||
#define VA_ROI_RC_QP_DELTA_SUPPORT(x) x->bits.roi_rc_qp_delta_support
|
||||
#define VA_ENC_PACKED_HEADER_H264_SEI VAEncPackedHeaderRawData
|
||||
#else
|
||||
#define VA_ROI_RC_QP_DELTA_SUPPORT(x) x->bits.roi_rc_qp_delat_support
|
||||
#define VA_ENC_PACKED_HEADER_H264_SEI VAEncPackedHeaderH264_SEI
|
||||
#endif
|
||||
|
||||
/* Compatibility glue with VA-API 0.34 */
|
||||
|
|
|
@ -1601,7 +1601,7 @@ add_packed_sei_header (GstVaapiEncoderH264 * encoder,
|
|||
data_bit_size = GST_BIT_WRITER_BIT_SIZE (&bs);
|
||||
data = GST_BIT_WRITER_DATA (&bs);
|
||||
|
||||
packed_sei_param.type = VAEncPackedHeaderH264_SEI;
|
||||
packed_sei_param.type = VA_ENC_PACKED_HEADER_H264_SEI;
|
||||
packed_sei_param.bit_length = data_bit_size;
|
||||
packed_sei_param.has_emulation_bytes = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue