ffmpeg_resize: check for NULL from ffmpeg_resize_internal #1788

This commit is contained in:
nick black 2021-06-22 00:50:39 -04:00
parent e8d19852d3
commit 921c2ce033
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -513,6 +513,9 @@ int ffmpeg_resize(ncvisual* n, int rows, int cols){
if(data == n->data){ // no change, return
return 0;
}
if(data == NULL){
return -1;
}
AVFrame* sframe = av_frame_alloc();
if(sframe == NULL){
//fprintf(stderr, "Couldn't allocate output frame for scaled frame\n");