mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
libav: don't molest user pointer
This commit is contained in:
parent
c23b4196a2
commit
f450c1261a
@ -142,7 +142,7 @@ AVFrame* ncvisual_decode(ncvisual* nc, int* averr){
|
||||
}
|
||||
nc->dstwidth = cols;
|
||||
nc->dstheight = rows * 2;
|
||||
nc->ncp = ncplane_new(nc->ncobj, rows, cols, nc->placey, nc->placex, nc);
|
||||
nc->ncp = ncplane_new(nc->ncobj, rows, cols, nc->placey, nc->placex, NULL);
|
||||
if(nc->ncp == NULL){
|
||||
*averr = AVERROR(ENOMEM);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user