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/utils.c | |
parent | db99ca21500534d1ca3eecc1039f1f45394569e1 (diff) |
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/utils.c')
-rw-r--r-- | libavcodec/utils.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index f78475d0ad..cae61d80ff 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -963,15 +963,11 @@ int ff_slice_thread_init_progress(AVCodecContext *avctx) return 0; } -int ff_alloc_entries(AVCodecContext *avctx, int count) +int ff_slice_thread_allocz_entries(AVCodecContext *avctx, int count) { return 0; } -void ff_reset_entries(AVCodecContext *avctx) -{ -} - void ff_thread_await_progress2(AVCodecContext *avctx, int field, int thread, int shift) { } |