From ae5a8dca675ee544178225256893e679b750cb63 Mon Sep 17 00:00:00 2001 From: Tom Butterworth Date: Thu, 23 Jul 2015 00:01:01 +0100 Subject: 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 --- libavcodec/hap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/hap.h') 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); -- cgit v1.2.3