diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-03-27 14:52:35 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-03-28 00:33:07 +0100 |
commit | 9fa757ad7c7f0bbc99ea92560c92234e4553ca42 (patch) | |
tree | 5d4438a88b29a9dd5db5b0091028ed15cbe4ed1a /libavcodec/vaapi_hevc.c | |
parent | d0b174d7df886023b2ce64d229d3af4777c01587 (diff) | |
download | ffmpeg-9fa757ad7c7f0bbc99ea92560c92234e4553ca42.tar.gz |
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
Diffstat (limited to 'libavcodec/vaapi_hevc.c')
-rw-r--r-- | libavcodec/vaapi_hevc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c index 19aabcdb52..c69d63d8ec 100644 --- a/libavcodec/vaapi_hevc.c +++ b/libavcodec/vaapi_hevc.c @@ -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_param = (VAPictureParameterBufferHEVC) { - .pic_fields.value = 0, - .slice_parsing_fields.value = 0, .pic_width_in_luma_samples = sps->width, .pic_height_in_luma_samples = sps->height, .log2_min_luma_coding_block_size_minus3 = sps->log2_min_cb_size - 3, |