ffplay.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/ffplay.c b/ffplay.c
index 86b9126..433a6e2 100644
|
a
|
b
|
static int read_thread(void *arg)
|
| 2824 | 2824 | if (st_index[AVMEDIA_TYPE_VIDEO] >= 0) { |
| 2825 | 2825 | AVStream *st = ic->streams[st_index[AVMEDIA_TYPE_VIDEO]]; |
| 2826 | 2826 | AVCodecContext *avctx = st->codec; |
| 2827 | | VideoPicture vp = {.width = avctx->width, .height = avctx->height, .sar = av_guess_sample_aspect_ratio(ic, st, NULL)}; |
| | 2827 | VideoPicture vp; |
| | 2828 | vp.width = avctx->width; |
| | 2829 | vp.height = avctx->height; |
| | 2830 | vp.sar = av_guess_sample_aspect_ratio(ic, st, NULL); |
| 2828 | 2831 | if (vp.width) |
| 2829 | 2832 | set_default_window_size(&vp); |
| 2830 | 2833 | } |
| … |
… |
int main(int argc, char **argv)
|
| 3632 | 3635 | flags &= ~SDL_INIT_AUDIO; |
| 3633 | 3636 | if (display_disable) |
| 3634 | 3637 | SDL_putenv(dummy_videodriver); /* For the event queue, we always need a video driver. */ |
| 3635 | | #if !defined(__MINGW32__) && !defined(__APPLE__) |
| | 3638 | #if !defined(__MINGW32__) && !defined(__APPLE__) && !defined(_MSC_VER) |
| 3636 | 3639 | flags |= SDL_INIT_EVENTTHREAD; /* Not supported on Windows or Mac OS X */ |
| 3637 | 3640 | #endif |
| 3638 | 3641 | if (SDL_Init (flags)) { |