[FFmpeg-cvslog] lavc/vaapi_hevc: Do not initialize fields twice.
Carl Eugen Hoyos
git at videolan.org
Thu Mar 28 01:45:46 EET 2019
ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Wed Mar 27 14:52:35 2019 +0100| [9fa757ad7c7f0bbc99ea92560c92234e4553ca42] | committer: Carl Eugen Hoyos
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
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9fa757ad7c7f0bbc99ea92560c92234e4553ca42
---
libavcodec/vaapi_hevc.c | 2 --
1 file changed, 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,
More information about the ffmpeg-cvslog
mailing list