Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2014-05-10 15:27:09 +0400
committerMarton Balint <cus@passwd.hu>2014-05-17 15:18:28 +0400
commit1fab67b6851f64778aa0ad9087e2d14f9ef1a798 (patch)
tree6e71a015e8c42bdb307558016fe009ec0ad3754d /ffplay.c
parentae6fe159f2990c3c0921805a932b7772906a8df4 (diff)
ffplay: fix compilation with Visual Studio
Based on a patch by achristensen from trac.ffmpeg.org. Partially fixes ticket #3580. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 588aff58f6..fabb48c9cf 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2824,7 +2824,10 @@ static int read_thread(void *arg)
if (st_index[AVMEDIA_TYPE_VIDEO] >= 0) {
AVStream *st = ic->streams[st_index[AVMEDIA_TYPE_VIDEO]];
AVCodecContext *avctx = st->codec;
- VideoPicture vp = {.width = avctx->width, .height = avctx->height, .sar = av_guess_sample_aspect_ratio(ic, st, NULL)};
+ VideoPicture vp = {0};
+ vp.width = avctx->width;
+ vp.height = avctx->height;
+ vp.sar = av_guess_sample_aspect_ratio(ic, st, NULL);
if (vp.width)
set_default_window_size(&vp);
}