Browse code

ffmpeg: make decoding_needed a counter.

Nicolas George authored on 2012/08/20 06:59:41
Showing 2 changed files
... ...
@@ -2108,7 +2108,7 @@ static int transcode_init(void)
2108 2108
             }
2109 2109
 
2110 2110
             if (ist)
2111
-                ist->decoding_needed = 1;
2111
+                ist->decoding_needed++;
2112 2112
             ost->encoding_needed = 1;
2113 2113
 
2114 2114
             if (!ost->filter &&
... ...
@@ -266,7 +266,7 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
266 266
     av_assert0(ist);
267 267
 
268 268
     ist->discard         = 0;
269
-    ist->decoding_needed = 1;
269
+    ist->decoding_needed++;
270 270
     ist->st->discard = AVDISCARD_NONE;
271 271
 
272 272
     fg->inputs = grow_array(fg->inputs, sizeof(*fg->inputs),