mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
[ffmpeg] free up frame buffers when seeding #2355
This commit is contained in:
parent
d4d96d3bf2
commit
23eaac9ced
@ -651,6 +651,7 @@ int ffmpeg_blit(ncvisual* ncv, int rows, int cols, ncplane* n,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ffmpeg_details_seed(ncvisual* ncv){
|
void ffmpeg_details_seed(ncvisual* ncv){
|
||||||
|
av_frame_unref(ncv->details->frame);
|
||||||
memset(ncv->details->frame, 0, sizeof(*ncv->details->frame));
|
memset(ncv->details->frame, 0, sizeof(*ncv->details->frame));
|
||||||
ncv->details->frame->linesize[0] = ncv->rowstride;
|
ncv->details->frame->linesize[0] = ncv->rowstride;
|
||||||
ncv->details->frame->width = ncv->pixx;
|
ncv->details->frame->width = ncv->pixx;
|
||||||
|
Loading…
Reference in New Issue
Block a user