mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
ffmpeg: free sframe->data[0], not sframe->data #1712
This commit is contained in:
parent
36f7eb500c
commit
5f3844d6f1
@ -580,13 +580,13 @@ int ffmpeg_blit(ncvisual* ncv, int rows, int cols, ncplane* n,
|
||||
if(rgba_blit_dispatch(n, bset, stride, data, rows, cols, bargs) < 0){
|
||||
//fprintf(stderr, "rgba dispatch failed!\n");
|
||||
if(sframe){
|
||||
//av_freep(sframe->data);
|
||||
av_freep(&sframe->data[0]);
|
||||
av_freep(&sframe);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
if(sframe){
|
||||
//av_freep(ncv->details->frame->data);
|
||||
av_freep(&sframe->data[0]);
|
||||
av_freep(&sframe);
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user