diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-07-15 11:16:53 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-07-22 09:14:05 +0200 |
commit | 8f3a3ce7307e39a030db3bf8d2e525b21e039ca2 (patch) | |
tree | df785a28eb2e8dfd7f30c55120da4e20be81e0d4 /libavfilter/vsrc_color.c | |
parent | 1dc42050185d63c1de5d16146fbaee92640af187 (diff) |
lavfi: check all ff_get_video_buffer() calls for errors.
Diffstat (limited to 'libavfilter/vsrc_color.c')
-rw-r--r-- | libavfilter/vsrc_color.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vsrc_color.c b/libavfilter/vsrc_color.c index 0fa6853189..ec83f03c5c 100644 --- a/libavfilter/vsrc_color.c +++ b/libavfilter/vsrc_color.c @@ -145,6 +145,9 @@ static int color_request_frame(AVFilterLink *link) AVFilterBufferRef *buf_out; int ret; + if (!picref) + return AVERROR(ENOMEM); + picref->video->pixel_aspect = (AVRational) {1, 1}; picref->pts = color->pts++; picref->pos = -1; |