drop ownership in ffmpeg routines #1800

This commit is contained in:
nick black 2021-06-27 03:29:15 -04:00 committed by Nick Black
parent 64abad918e
commit 95a4511045

View File

@ -201,7 +201,7 @@ force_rgba(ncvisual* n){
av_freep(&n->details->frame);
}
}
ncvisual_set_data(n, sframe->data[0], true);
ncvisual_set_data(n, sframe->data[0], false);
}
n->details->frame = sframe;
return 0;
@ -538,7 +538,7 @@ int ffmpeg_resize(ncvisual* n, int rows, int cols){
if(n->owndata){
av_frame_unref(n->details->frame);
}
ncvisual_set_data(n, sframe->data[0], true);
ncvisual_set_data(n, sframe->data[0], false);
n->details->frame = sframe;
//fprintf(stderr, "SIZE SCALED: %d %d (%u)\n", n->details->frame->height, n->details->frame->width, n->details->frame->linesize[0]);
return 0;