diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-11-19 04:58:45 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-11-24 20:58:21 +0100 |
commit | 64ed1d40df82949114ca5c4cbf33858ae94cc7f9 (patch) | |
tree | 70b1228940d01a4acd1fb1aa09b6ae2d61b68dc2 /libavdevice/gdigrab.c | |
parent | e97368eba5b48a958d3b398780e56b12db92d1a1 (diff) | |
download | ffmpeg-64ed1d40df82949114ca5c4cbf33858ae94cc7f9.tar.gz |
swscale/utils: Factor initializing single slice context out
Initializing slice threads currently uses the function
(sws_init_context()) that is also used for initializing
user-facing contexts with the only difference being that
nb_threads is set to one before initializing the slice contexts.
Yet sws_init_context() also initializes lots of stuff
that is not slice-dependent, i.e. (src|dst)Range. This
currently only works because the code sets these fields
to the same values for all slice contexts. This is not
nice; even worse, it entails that log messages are printed
once per slice context (and therefore fill the screen).
This commit lays the groundwork to fix this.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavdevice/gdigrab.c')
0 files changed, 0 insertions, 0 deletions