libav: don't molest user pointer

This commit is contained in:
nick black 2020-01-17 12:19:32 -05:00
parent c23b4196a2
commit f450c1261a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

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