lavc/vaapi_hevc: Do not initialize fields twice.

Fixes the following compilation warnings:
libavcodec/vaapi_hevc.c:155:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
        .pic_fields.bits = {
                   ~^~~~
libavcodec/vaapi_hevc.c:125:57: note: previous initialization is here
        .pic_fields.value                             = 0,
                                                        ^
libavcodec/vaapi_hevc.c:175:31: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
        .slice_parsing_fields.bits = {
                             ~^~~~
libavcodec/vaapi_hevc.c:126:57: note: previous initialization is here
        .slice_parsing_fields.value                   = 0,

Reviewed-by: Mark Thompson
This commit is contained in:
Carl Eugen Hoyos 2019-03-27 14:52:35 +01:00
parent d0b174d7df
commit 9fa757ad7c
1 changed files with 0 additions and 2 deletions

View File

@ -122,8 +122,6 @@ static int vaapi_hevc_start_frame(AVCodecContext *avctx,
pic->pic.output_surface = ff_vaapi_get_surface_id(h->ref->frame); pic->pic.output_surface = ff_vaapi_get_surface_id(h->ref->frame);
pic->pic_param = (VAPictureParameterBufferHEVC) { pic->pic_param = (VAPictureParameterBufferHEVC) {
.pic_fields.value = 0,
.slice_parsing_fields.value = 0,
.pic_width_in_luma_samples = sps->width, .pic_width_in_luma_samples = sps->width,
.pic_height_in_luma_samples = sps->height, .pic_height_in_luma_samples = sps->height,
.log2_min_luma_coding_block_size_minus3 = sps->log2_min_cb_size - 3, .log2_min_luma_coding_block_size_minus3 = sps->log2_min_cb_size - 3,