]> git.sesse.net Git - ffmpeg/commit
ffplay: avoid SIGFPE exception in SDL_DisplayYUVOverlay
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Fri, 22 Apr 2011 15:11:23 +0000 (17:11 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 24 Apr 2011 21:10:26 +0000 (23:10 +0200)
commit69f58958ce8f81b153b14c60959ba37d6bf0b8cf
tree34d07b19894299a305ce7d28cd55a4f449ece153
parentfbfcc8f1b71b51ff87f09e269d22328be5594f40
ffplay: avoid SIGFPE exception in SDL_DisplayYUVOverlay

In video_image_display(), fix exception occurring when the size of the
rectangle passed to SDL_DisplayYUVOverlay() is 0x0, which happens when
interactively resizing the SDL window.
This is done by forcing the minimum size to 1x1.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
ffplay.c