Skip to content
Snippets Groups Projects
Commit d10dc616 authored by Alex Beregszaszi's avatar Alex Beregszaszi
Browse files

sanity check whether dimensions are non-null

Originally committed as revision 4634 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 83254e24
No related branches found
No related tags found
No related merge requests found
......@@ -558,6 +558,9 @@ ImgReSampleContext *img_resample_full_init(int owidth, int oheight,
{
ImgReSampleContext *s;
if (!owidth || !oheight || !iwidth || !iheight)
return NULL;
s = av_mallocz(sizeof(ImgReSampleContext));
if (!s)
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment