[FFmpeg-cvslog] avfilter/avectorscope: fix {} mistake in alloc check.
Clément Bœsch
git at videolan.org
Thu Dec 26 13:49:22 CET 2013
ffmpeg | branch: master | Clément Bœsch <clement at stupeflix.com> | Thu Dec 26 13:48:30 2013 +0100| [ec73bd1fe876b4bd9f061863f86ad57043a47ade] | committer: Clément Bœsch
avfilter/avectorscope: fix {} mistake in alloc check.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ec73bd1fe876b4bd9f061863f86ad57043a47ade
---
libavfilter/avf_avectorscope.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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);
More information about the ffmpeg-cvslog
mailing list