mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
va: baseenc: use in_info rather than input_state->info
The in_info is correct video info which already considers the DMA kind caps case. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5289>
This commit is contained in:
parent
d1e7b3fce1
commit
6b23f2c4be
1 changed files with 4 additions and 4 deletions
|
@ -219,7 +219,7 @@ _get_sinkpad_pool (GstElement * element, gpointer data)
|
|||
|
||||
gst_allocation_params_init (¶ms);
|
||||
|
||||
size = GST_VIDEO_INFO_SIZE (&base->input_state->info);
|
||||
size = GST_VIDEO_INFO_SIZE (&base->in_info);
|
||||
|
||||
surface_formats = gst_va_encoder_get_surface_formats (base->encoder);
|
||||
|
||||
|
@ -261,7 +261,7 @@ gst_va_base_enc_import_input_buffer (GstVaBaseEnc * base,
|
|||
#endif
|
||||
.display = base->display,
|
||||
.entrypoint = GST_VA_BASE_ENC_ENTRYPOINT (base),
|
||||
.in_info = &base->input_state->info,
|
||||
.in_info = &base->in_info,
|
||||
.sinkpad_info = &base->priv->sinkpad_info,
|
||||
.get_sinkpad_pool = _get_sinkpad_pool,
|
||||
};
|
||||
|
@ -975,8 +975,8 @@ gst_va_base_enc_add_frame_rate_parameter (GstVaBaseEnc * base,
|
|||
/* denominator = framerate >> 16 & 0xffff;
|
||||
* numerator = framerate & 0xffff; */
|
||||
.fr.framerate =
|
||||
(GST_VIDEO_INFO_FPS_N (&base->input_state->info) & 0xffff) |
|
||||
((GST_VIDEO_INFO_FPS_D (&base->input_state->info) & 0xffff) << 16)
|
||||
(GST_VIDEO_INFO_FPS_N (&base->in_info) & 0xffff) |
|
||||
((GST_VIDEO_INFO_FPS_D (&base->in_info) & 0xffff) << 16)
|
||||
};
|
||||
/* *INDENT-ON* */
|
||||
|
||||
|
|
Loading…
Reference in a new issue