Browse Source

avfilter/vf_deflicker: fix invalid access

Fixes #8253
tags/n4.3
Paul B Mahol 6 years ago
parent
commit
b62f7e243c
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libavfilter/vf_deflicker.c

+ 4
- 1
libavfilter/vf_deflicker.c View File

@@ -420,7 +420,10 @@ static int request_frame(AVFilterLink *outlink)

ret = ff_request_frame(ctx->inputs[0]);
if (ret == AVERROR_EOF && s->available > 0) {
AVFrame *buf = av_frame_clone(ff_bufqueue_peek(&s->q, s->size - 1));
AVFrame *buf = ff_bufqueue_peek(&s->q, s->available - 1);
if (!buf)
return AVERROR(ENOMEM);
buf = av_frame_clone(buf);
if (!buf)
return AVERROR(ENOMEM);



Loading…
Cancel
Save