From 00223132e9660acd50478bd9e709b72c605ee6da Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Mon, 12 Dec 2016 11:44:36 +0100 Subject: [PATCH] avcodec/cuvid: fix compilation with msvc11 --- libavcodec/cuvid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/cuvid.c b/libavcodec/cuvid.c index 94606a9b02..8fc713d081 100644 --- a/libavcodec/cuvid.c +++ b/libavcodec/cuvid.c @@ -288,8 +288,9 @@ static int CUDAAPI cuvid_handle_picture_display(void *opaque, CUVIDPARSERDISPINF { AVCodecContext *avctx = opaque; CuvidContext *ctx = avctx->priv_data; - CuvidParsedFrame parsed_frame = { *dispinfo, 0, 0 }; + CuvidParsedFrame parsed_frame = { { 0 } }; + parsed_frame.dispinfo = *dispinfo; ctx->internal_error = 0; if (ctx->deint_mode == cudaVideoDeinterlaceMode_Weave) {