lavfi: check all ff_get_video_buffer() calls for errors.

This commit is contained in:
Anton Khirnov
2012-07-15 11:16:53 +02:00
parent 1dc4205018
commit 8f3a3ce730
7 changed files with 23 additions and 0 deletions

View File

@ -52,6 +52,9 @@ static AVFilterBufferRef *get_video_buffer(AVFilterLink *link, int perms,
return ff_default_get_video_buffer(link, perms, w, h);
picref = ff_get_video_buffer(link->dst->outputs[0], perms, w, h);
if (!picref)
return NULL;
for (i = 0; i < 4; i ++) {
int vsub = i == 1 || i == 2 ? flip->vsub : 0;