You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffmpeg: make decoding_needed a counter.
This commit is contained in:
2
ffmpeg.c
2
ffmpeg.c
@@ -2108,7 +2108,7 @@ static int transcode_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ist)
|
if (ist)
|
||||||
ist->decoding_needed = 1;
|
ist->decoding_needed++;
|
||||||
ost->encoding_needed = 1;
|
ost->encoding_needed = 1;
|
||||||
|
|
||||||
if (!ost->filter &&
|
if (!ost->filter &&
|
||||||
|
@@ -266,7 +266,7 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
|
|||||||
av_assert0(ist);
|
av_assert0(ist);
|
||||||
|
|
||||||
ist->discard = 0;
|
ist->discard = 0;
|
||||||
ist->decoding_needed = 1;
|
ist->decoding_needed++;
|
||||||
ist->st->discard = AVDISCARD_NONE;
|
ist->st->discard = AVDISCARD_NONE;
|
||||||
|
|
||||||
fg->inputs = grow_array(fg->inputs, sizeof(*fg->inputs),
|
fg->inputs = grow_array(fg->inputs, sizeof(*fg->inputs),
|
||||||
|
Reference in New Issue
Block a user