[FFmpeg-devel] [PATCH 2/7] ffmpeg: make decoding_needed a counter.

Nicolas George nicolas.george at normalesup.org
Mon Aug 20 23:28:10 CEST 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 ffmpeg.c        |    2 +-
 ffmpeg_filter.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 2459199..597c051 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 5dcfaa4..cae8229 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),
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list