[FFmpeg-devel] [PATCH] lavfi/cellauto: check return value of ff_get_video_buffer()
Paul B Mahol
onemda at gmail.com
Mon Apr 8 20:52:12 CEST 2013
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavfilter/vsrc_cellauto.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/vsrc_cellauto.c b/libavfilter/vsrc_cellauto.c
index 110f6ae..a48f04c 100644
--- a/libavfilter/vsrc_cellauto.c
+++ b/libavfilter/vsrc_cellauto.c
@@ -294,6 +294,8 @@ static int request_frame(AVFilterLink *outlink)
{
CellAutoContext *cellauto = outlink->src->priv;
AVFrame *picref = ff_get_video_buffer(outlink, cellauto->w, cellauto->h);
+ if (!picref)
+ return AVERROR(ENOMEM);
picref->sample_aspect_ratio = (AVRational) {1, 1};
if (cellauto->generation == 0 && cellauto->start_full) {
int i;
--
1.7.11.2
More information about the ffmpeg-devel
mailing list