Skip to content
Snippets Groups Projects
Commit d450cb07 authored by Federico Tomassetti's avatar Federico Tomassetti Committed by Luca Barbato
Browse files

avplay: Check memory allocation


Bug-Id: CID 1288294

Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
parent d3aa307d
No related branches found
No related tags found
No related merge requests found
...@@ -1580,6 +1580,8 @@ static int video_thread(void *arg) ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment