summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2016-12-12 11:44:36 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2016-12-12 13:09:55 +0100
commit00223132e9660acd50478bd9e709b72c605ee6da (patch)
treedd9756a5484cfae8140e5ada5fe920e9cc8aef2d
parent62eafc6a6dd8c51d6ecabdb3d649043950c4f01b (diff)
downloadffmpeg-streaming-00223132e9660acd50478bd9e709b72c605ee6da.zip
ffmpeg-streaming-00223132e9660acd50478bd9e709b72c605ee6da.tar.gz
avcodec/cuvid: fix compilation with msvc11
-rw-r--r--libavcodec/cuvid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/cuvid.c b/libavcodec/cuvid.c
index 94606a9..8fc713d 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) {
OpenPOWER on IntegriCloud