aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-08-14 19:40:21 +0200
committerAnton Khirnov <anton@khirnov.net>2015-12-05 21:11:12 +0100
commita853388d2fc5be848cca839a9fdf39a97c2d7b0e (patch)
tree0c9e12633e639ad01818b8af6f0c34e9c1184b16 /libavcodec/hevc.c
parent688417399c69aadd4c287bdb0dec82ef8799011c (diff)
downloadffmpeg-a853388d2fc5be848cca839a9fdf39a97c2d7b0e.tar.gz
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.
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r--libavcodec/hevc.c2
1 files changed, 1 insertions, 1 deletions
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);