mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
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>
This commit is contained in:
parent
ae6fe159f2
commit
1fab67b685
5
ffplay.c
5
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user