ffmpeg_resize: check for NULL from ffmpeg_resize_internal #1788

pull/1809/head
nick black 3 years ago
parent e8d19852d3
commit 921c2ce033
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

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

Loading…
Cancel
Save