[FFmpeg-cvslog] ffmpeg: make decoding_needed a counter.

Nicolas George git at videolan.org
Wed Aug 22 19:20:00 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Aug 19 23:59:41 2012 +0200| [425b77114ba25da1764c9f615a318c2e1c5b4745] | committer: Nicolas George

ffmpeg: make decoding_needed a counter.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=425b77114ba25da1764c9f615a318c2e1c5b4745
---

 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),



More information about the ffmpeg-cvslog mailing list