[FFmpeg-cvslog] avconv: Check the fifo allocation
Luca Barbato
git at videolan.org
Sat Mar 18 20:45:25 EET 2017
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Mon Jul 25 00:33:01 2016 +0200| [602abe77b02f9702c18c2787d208fcfc9d94b70f] | committer: Luca Barbato
avconv: Check the fifo allocation
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=602abe77b02f9702c18c2787d208fcfc9d94b70f
---
avconv_filter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/avconv_filter.c b/avconv_filter.c
index b78d3bd..4330802 100644
--- a/avconv_filter.c
+++ b/avconv_filter.c
@@ -181,7 +181,7 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
fg->inputs[fg->nb_inputs - 1]->format = -1;
fg->inputs[fg->nb_inputs - 1]->frame_queue = av_fifo_alloc(8 * sizeof(AVFrame*));
- if (!fg->inputs[fg->nb_inputs - 1])
+ if (!fg->inputs[fg->nb_inputs - 1]->frame_queue)
exit_program(1);
GROW_ARRAY(ist->filters, ist->nb_filters);
More information about the ffmpeg-cvslog
mailing list