sanity check whether dimensions are non-null
Originally committed as revision 4634 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
83254e245c
commit
d10dc61682
@ -558,6 +558,9 @@ ImgReSampleContext *img_resample_full_init(int owidth, int oheight,
|
|||||||
{
|
{
|
||||||
ImgReSampleContext *s;
|
ImgReSampleContext *s;
|
||||||
|
|
||||||
|
if (!owidth || !oheight || !iwidth || !iheight)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
s = av_mallocz(sizeof(ImgReSampleContext));
|
s = av_mallocz(sizeof(ImgReSampleContext));
|
||||||
if (!s)
|
if (!s)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user