Browse Source

avplay: Check memory allocation

Bug-Id: CID 1288294

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n2.7
Federico Tomassetti Luca Barbato 10 years ago
parent
commit
d450cb07d9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      avplay.c

+ 2
- 0
avplay.c View File

@@ -1580,6 +1580,8 @@ static int video_thread(void *arg)
AVFilterContext *filt_out = NULL, *filt_in = NULL; AVFilterContext *filt_out = NULL, *filt_in = NULL;
int last_w = is->video_st->codec->width; int last_w = is->video_st->codec->width;
int last_h = is->video_st->codec->height; int last_h = is->video_st->codec->height;
if (!graph)
return AVERROR(ENOMEM);


if ((ret = configure_video_filters(graph, is, vfilters)) < 0) if ((ret = configure_video_filters(graph, is, vfilters)) < 0)
goto the_end; goto the_end;


Loading…
Cancel
Save