[FFmpeg-devel] [PATCH 2/7] ffmpeg: make decoding_needed a counter.
Stefano Sabatini
stefasab at gmail.com
Tue Aug 21 01:06:59 CEST 2012
On date Monday 2012-08-20 23:28:10 +0200, Nicolas George encoded:
>
> 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),
Looks good if useful.
--
FFmpeg = Fanciful and Frightening Most Philosophical Exuberant Ghost
More information about the ffmpeg-devel
mailing list