mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +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->dstwidth = cols;
|
||||||
nc->dstheight = rows * 2;
|
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){
|
if(nc->ncp == NULL){
|
||||||
*averr = AVERROR(ENOMEM);
|
*averr = AVERROR(ENOMEM);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user