|
@@ -410,10 +410,10 @@ static int vaapi_encode_h265_init_sequence_params(AVCodecContext *avctx) |
|
|
sps->conformance_window_flag = 1; |
|
|
sps->conformance_window_flag = 1; |
|
|
sps->conf_win_left_offset = 0; |
|
|
sps->conf_win_left_offset = 0; |
|
|
sps->conf_win_right_offset = |
|
|
sps->conf_win_right_offset = |
|
|
(ctx->surface_width - avctx->width) / 2; |
|
|
|
|
|
|
|
|
(ctx->surface_width - avctx->width) >> desc->log2_chroma_w; |
|
|
sps->conf_win_top_offset = 0; |
|
|
sps->conf_win_top_offset = 0; |
|
|
sps->conf_win_bottom_offset = |
|
|
sps->conf_win_bottom_offset = |
|
|
(ctx->surface_height - avctx->height) / 2; |
|
|
|
|
|
|
|
|
(ctx->surface_height - avctx->height) >> desc->log2_chroma_h; |
|
|
} else { |
|
|
} else { |
|
|
sps->conformance_window_flag = 0; |
|
|
sps->conformance_window_flag = 0; |
|
|
} |
|
|
} |
|
|