From 425b77114ba25da1764c9f615a318c2e1c5b4745 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Sun, 19 Aug 2012 23:59:41 +0200 Subject: [PATCH] ffmpeg: make decoding_needed a counter. --- ffmpeg.c | 2 +- ffmpeg_filter.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index 2459199014..597c05170a 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2108,7 +2108,7 @@ static int transcode_init(void) } if (ist) - ist->decoding_needed = 1; + ist->decoding_needed++; ost->encoding_needed = 1; if (!ost->filter && diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c index 5dcfaa4601..cae82292aa 100644 --- a/ffmpeg_filter.c +++ b/ffmpeg_filter.c @@ -266,7 +266,7 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in) av_assert0(ist); ist->discard = 0; - ist->decoding_needed = 1; + ist->decoding_needed++; ist->st->discard = AVDISCARD_NONE; fg->inputs = grow_array(fg->inputs, sizeof(*fg->inputs),