diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-30 20:31:35 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-25 23:32:34 +0200 |
commit | b4ca3c7e4e4a098651f013b80d9d88cc1dc4d6b7 (patch) | |
tree | 253184b90a808629433917b8459c42169b0635a0 /libavcodec/thread.h | |
parent | db99ca21500534d1ca3eecc1039f1f45394569e1 (diff) | |
download | ffmpeg-b4ca3c7e4e4a098651f013b80d9d88cc1dc4d6b7.tar.gz |
avcodec/pthread_slice: Combine allocating and zeroing entries
Actually, ff_slice_thread_allocz_entries() always already
allocates zeroed entries, so ff_reset_entries() was already
unnecessary. Make this more clear by renaming it to
ff_slice_thread_allocz_entries().
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/thread.h')
-rw-r--r-- | libavcodec/thread.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/thread.h b/libavcodec/thread.h index 92cbd927f1..d5673f25ea 100644 --- a/libavcodec/thread.h +++ b/libavcodec/thread.h @@ -104,8 +104,7 @@ int ff_slice_thread_execute_with_mainfunc(AVCodecContext *avctx, int (*action_func2)(AVCodecContext *c, void *arg, int jobnr, int threadnr), int (*main_func)(AVCodecContext *c), void *arg, int *ret, int job_count); void ff_thread_free(AVCodecContext *s); -int ff_alloc_entries(AVCodecContext *avctx, int count); -void ff_reset_entries(AVCodecContext *avctx); +int ff_slice_thread_allocz_entries(AVCodecContext *avctx, int count); int ff_slice_thread_init_progress(AVCodecContext *avctx); void ff_thread_report_progress2(AVCodecContext *avctx, int field, int thread, int n); void ff_thread_await_progress2(AVCodecContext *avctx, int field, int thread, int shift); |