X-Git-Url: https://git.libav.org/?p=libav.git;a=blobdiff_plain;f=ffplay.c;h=fb99d9ad3e9dd8d03472ac9a2aea3d6810f00948;hp=bfe10bebd154864a45be3ff74d5c0bb5dffea7fb;hb=d3d7b12edfd88f9915e699b083adb55c93f5d586;hpb=114a93c7002c311d348fbfe0d50c82d61858ce5d diff --git a/ffplay.c b/ffplay.c index bfe10bebd1..fb99d9ad3e 100644 --- a/ffplay.c +++ b/ffplay.c @@ -965,6 +965,10 @@ static int video_open(VideoState *is){ w = 640; h = 480; } + if(screen && is->width == screen->w && screen->w == w + && is->height== screen->h && screen->h == h) + return 0; + #ifndef __APPLE__ screen = SDL_SetVideoMode(w, h, 0, flags); #else