mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ffmpeg: make decoding_needed a counter.
This commit is contained in:
parent
beeba9161a
commit
425b77114b
2
ffmpeg.c
2
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 &&
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user