|
|
@@ -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; |
|
|
|