mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
ffmpeg_resize: check for NULL from ffmpeg_resize_internal #1788
This commit is contained in:
parent
e8d19852d3
commit
921c2ce033
@ -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…
Reference in New Issue
Block a user