[FFmpeg-devel] [PATCH] ffplay: avoid SIGFPE exception in SDL_DisplayYUVOverlay

Stefano Sabatini stefano.sabatini-lala at poste.it
Sat Apr 23 12:54:21 CEST 2011


On date Saturday 2011-04-23 02:20:23 +0200, Michael Niedermayer encoded:
> On Fri, Apr 22, 2011 at 05:42:52PM +0200, Stefano Sabatini wrote:
> > In video_image_display(), fix exception occurring when the size of the
> > rectangle passed to SDL_DisplayYUVOverlay() is 0x0. This is done by
> > forcing the minimum size to 1x1.
> > 
> > Signed-off-by: Stefano Sabatini <stefano.sabatini-lala at poste.it>
> > ---
> >  ffplay.c |    4 ++--
> >  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> the patch is ok but please explain when this happened?

Try to interactively resize the ffplay window to size 0x0, it will crash.
-- 
FFmpeg = Faithful and Formidable Muttering Peaceful Elitarian Guide


More information about the ffmpeg-devel mailing list