diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-29 15:03:21 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-03 15:42:57 +0200 |
commit | 73fada029c527fda6c248785a948c61249fd4b2d (patch) | |
tree | f8c785ff529107f76d5b4b3f3647a3ec6bb1bef6 /libavutil/internal.h | |
parent | 48286d4d98e6417dff397d6f15e6b2ca3310f0ca (diff) | |
download | ffmpeg-73fada029c527fda6c248785a948c61249fd4b2d.tar.gz |
avcodec/codec_internal: Add macros for update_thread_context(_for_user)
It reduces typing: Before this patch, there were 11 callbacks
that exceeded the 80 char line length limit; now there are zero.
It also allows to remove ONLY_IF_THREADS_ENABLED() in
libavutil/internal.h.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r-- | libavutil/internal.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 40072d4e30..c9e30bc5e9 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -116,17 +116,6 @@ #endif /** - * Return NULL if a threading library has not been enabled. - * Used to disable threading functions in AVCodec definitions - * when not needed. - */ -#if HAVE_THREADS -# define ONLY_IF_THREADS_ENABLED(x) x -#else -# define ONLY_IF_THREADS_ENABLED(x) NULL -#endif - -/** * Log a generic warning message about a missing feature. * * @param[in] avc a pointer to an arbitrary struct of which the first |