[FFmpeg-cvslog] ffplay: fix compilation with Visual Studio
Marton Balint
git at videolan.org
Sat May 17 14:54:21 CEST 2014
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat May 10 13:27:09 2014 +0200| [1fab67b6851f64778aa0ad9087e2d14f9ef1a798] | committer: Marton Balint
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 at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1fab67b6851f64778aa0ad9087e2d14f9ef1a798
---
ffplay.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ffplay.c b/ffplay.c
index 588aff58..fabb48c 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);
}
More information about the ffmpeg-cvslog
mailing list