Commit eb8756e4 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '336d2f09'

* commit '336d2f09':
  avplay: Free frame and graph when memory allocation fails

Conflicts:
	ffplay.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 0796a2ab 336d2f09
......@@ -2231,13 +2231,19 @@ static int video_thread(void *arg)
enum AVPixelFormat last_format = -2;
int last_serial = -1;
int last_vfilter_idx = 0;
if (!graph)
if (!graph) {
av_frame_free(&frame);
return AVERROR(ENOMEM);
}
#endif
if (!frame)
if (!frame) {
#if CONFIG_AVFILTER
avfilter_graph_free(&graph);
#endif
return AVERROR(ENOMEM);
}
for (;;) {
ret = get_video_frame(is, frame);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment