summaryrefslogtreecommitdiff
path: root/libavcodec/hap.h
diff options
context:
space:
mode:
authorTom Butterworth <bangnoise@gmail.com>2015-07-23 00:01:01 +0100
committerLuca Barbato <lu_zero@gentoo.org>2015-07-23 10:46:19 +0200
commitae5a8dca675ee544178225256893e679b750cb63 (patch)
treee51970085cd34f09bec5fab07173fcc0fe6be3cc /libavcodec/hap.h
parentebe8b5d947c41449c684f17c6826fe6bc46c0360 (diff)
hap: Fix slice size computation
A bug was introduced in 977105407cae55876041dddbf4ce0934cdd4cd6c whereby when frame height wasn't divisible by the number of threads, pixels would be omitted from the bottom rows during decode. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/hap.h')
-rw-r--r--libavcodec/hap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hap.h b/libavcodec/hap.h
index 75299fda74..e06f933ba8 100644
--- a/libavcodec/hap.h
+++ b/libavcodec/hap.h
@@ -46,7 +46,7 @@ typedef struct HapContext {
uint8_t *snappied; /* Buffer interacting with snappy */
size_t max_snappy; /* Maximum compressed size for snappy buffer */
- int slice_size; /* Optimal slice size */
+ int slice_count; /* Number of slices for threaded operations */
/* Pointer to the selected compress or decompress function */
int (*tex_fun)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block);