From a853388d2fc5be848cca839a9fdf39a97c2d7b0e Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 14 Aug 2015 19:40:21 +0200 Subject: hevc: change the stride of the MC buffer to be in bytes instead of elements Currently, the frame stride is passed in bytes, while the MC buffer size is in int16_t elements, This can be confusing, so pass both strides in bytes. --- libavcodec/hevc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/hevc.c') diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 699e680609..a749e9ec14 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -1666,7 +1666,7 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0, RefPicList *refPicList = s->ref->refPicList; HEVCFrame *ref0, *ref1; - int tmpstride = MAX_PB_SIZE; + int tmpstride = MAX_PB_SIZE * sizeof(int16_t); uint8_t *dst0 = POS(0, x0, y0); uint8_t *dst1 = POS(1, x0, y0); -- cgit v1.2.3