[FFmpeg-cvslog] avcodec/cuvid: fix compilation with msvc11

Timo Rothenpieler git at videolan.org
Mon Dec 12 14:10:14 EET 2016


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Mon Dec 12 11:44:36 2016 +0100| [00223132e9660acd50478bd9e709b72c605ee6da] | committer: Timo Rothenpieler

avcodec/cuvid: fix compilation with msvc11

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=00223132e9660acd50478bd9e709b72c605ee6da
---

 libavcodec/cuvid.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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) {



More information about the ffmpeg-cvslog mailing list