mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04: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
|
if(data == n->data){ // no change, return
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if(data == NULL){
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
AVFrame* sframe = av_frame_alloc();
|
AVFrame* sframe = av_frame_alloc();
|
||||||
if(sframe == NULL){
|
if(sframe == NULL){
|
||||||
//fprintf(stderr, "Couldn't allocate output frame for scaled frame\n");
|
//fprintf(stderr, "Couldn't allocate output frame for scaled frame\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user