Skip to content

Commit

Permalink
avplay: Check memory allocation
Browse files Browse the repository at this point in the history
Bug-Id: CID 1288294

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
  • Loading branch information
ftomassetti authored and lu-zero committed Mar 21, 2015
1 parent d3aa307 commit d450cb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions avplay.c
Expand Up @@ -1580,6 +1580,8 @@ static int video_thread(void *arg)
AVFilterContext *filt_out = NULL, *filt_in = NULL;
int last_w = is->video_st->codec->width;
int last_h = is->video_st->codec->height;
if (!graph)
return AVERROR(ENOMEM);

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

0 comments on commit d450cb0

Please sign in to comment.