1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00

avcodec/vaapi_av1: stop setting deprecated VA-API fields

chroma_sample_position is a single bit and cannot hold the 2-bit AV1
value, so CSP_COLOCATED was silently truncated to CSP_UNKNOWN. tg_start
and tg_end are meaningless because the bitstream is submitted with per
tile granularity. libva deprecated all three without a replacement.
Fixes -Wdeprecated-declarations.

Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
Kacper Michajłow
2026-07-29 22:22:50 +02:00
parent 87014aad6b
commit 7432fed62b

View File

@@ -195,7 +195,6 @@ static int vaapi_av1_start_frame(AVCodecContext *avctx,
.color_range = seq->color_config.color_range,
.subsampling_x = seq->color_config.subsampling_x,
.subsampling_y = seq->color_config.subsampling_y,
.chroma_sample_position = seq->color_config.chroma_sample_position,
.film_grain_params_present = seq->film_grain_params_present &&
!(avctx->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN),
},
@@ -431,8 +430,6 @@ static int vaapi_av1_decode_slice(AVCodecContext *avctx,
.slice_data_flag = VA_SLICE_DATA_FLAG_ALL,
.tile_row = s->tile_group_info[i].tile_row,
.tile_column = s->tile_group_info[i].tile_column,
.tg_start = s->tg_start,
.tg_end = s->tg_end,
};
}