mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-10-19 18:03:17 +00:00
avfilter/vf_avgblur: Check plane instead of AVFrame
Fixes: CID1551694 Use after free (false positive based on assuming that out == in and one is freed and one used)
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c296d4fdec
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
791704d8ec
commit
add09d1fb6
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||||
const int width = s->planewidth[plane];
|
const int width = s->planewidth[plane];
|
||||||
|
|
||||||
if (!(s->planes & (1 << plane))) {
|
if (!(s->planes & (1 << plane))) {
|
||||||
if (out != in)
|
if (out->data[plane] != in->data[plane])
|
||||||
av_image_copy_plane(out->data[plane], out->linesize[plane],
|
av_image_copy_plane(out->data[plane], out->linesize[plane],
|
||||||
in->data[plane], in->linesize[plane],
|
in->data[plane], in->linesize[plane],
|
||||||
width * ((s->depth + 7) / 8), height);
|
width * ((s->depth + 7) / 8), height);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue