# HG changeset patch # User alex # Date 1129156810 0 # Node ID 84404858c5293765d396401c42f3534fe0532d21 # Parent 59af72b453e34376432cd92fdc8833a9f0753f26 sanity check whether dimensions are non-null diff -r 59af72b453e3 -r 84404858c529 imgresample.c --- a/imgresample.c Wed Oct 12 22:37:42 2005 +0000 +++ b/imgresample.c Wed Oct 12 22:40:10 2005 +0000 @@ -558,6 +558,9 @@ { ImgReSampleContext *s; + if (!owidth || !oheight || !iwidth || !iheight) + return NULL; + s = av_mallocz(sizeof(ImgReSampleContext)); if (!s) return NULL;