Skip to content

Commit

Permalink
avfilter/avectorscope: fix {} mistake in alloc check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ubitux committed Dec 26, 2013
1 parent 6b36f57 commit ec73bd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libavfilter/avf_avectorscope.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
p->outpicref->height != outlink->h) {
av_frame_free(&p->outpicref);
p->outpicref = ff_get_video_buffer(outlink, outlink->w, outlink->h);
if (!p->outpicref)
if (!p->outpicref) {
av_frame_free(&insamples);
return AVERROR(ENOMEM);
}

for (i = 0; i < outlink->h; i++)
memset(p->outpicref->data[0] + i * p->outpicref->linesize[0], 0, outlink->w * 4);
Expand Down

0 comments on commit ec73bd1

Please sign in to comment.