mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
drop ownership in ffmpeg routines #1800
This commit is contained in:
parent
64abad918e
commit
95a4511045
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user