diff options
author | Clément Bœsch <clement@stupeflix.com> | 2013-12-26 13:48:30 +0100 |
---|---|---|
committer | Clément Bœsch <clement@stupeflix.com> | 2013-12-26 13:49:15 +0100 |
commit | ec73bd1fe876b4bd9f061863f86ad57043a47ade (patch) | |
tree | 3d8f7dfd6c2aa6accb0b80d10c0605f120341b4a /libavfilter | |
parent | 6b36f577a12a0e940b43984d442e1cca7e272b63 (diff) | |
download | ffmpeg-streaming-ec73bd1fe876b4bd9f061863f86ad57043a47ade.zip ffmpeg-streaming-ec73bd1fe876b4bd9f061863f86ad57043a47ade.tar.gz |
avfilter/avectorscope: fix {} mistake in alloc check.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avf_avectorscope.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/avf_avectorscope.c b/libavfilter/avf_avectorscope.c index 3ca596c..f9ebc0f 100644 --- a/libavfilter/avf_avectorscope.c +++ b/libavfilter/avf_avectorscope.c @@ -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); |