summaryrefslogtreecommitdiff
path: root/libavcodec/hpeldsp.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-01-19 17:57:03 +0100
committerDiego Biurrun <diego@biurrun.de>2016-07-25 19:38:18 +0200
commit48b80f8393d418ad35d73f5a36f5011de1928f3c (patch)
tree3d4933cac8a3515cf72a9de9cb6fd0dd739e6003 /libavcodec/hpeldsp.h
parent40ad05bab206c932a32171d45581080c914b06ec (diff)
hpeldsp: Explain why put_no_rnd_pixels_tab is larger than necessary
Diffstat (limited to 'libavcodec/hpeldsp.h')
-rw-r--r--libavcodec/hpeldsp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/hpeldsp.h b/libavcodec/hpeldsp.h
index d037cba14e..62dee6813d 100644
--- a/libavcodec/hpeldsp.h
+++ b/libavcodec/hpeldsp.h
@@ -76,6 +76,8 @@ typedef struct HpelDSPContext {
* @param pixels source
* @param line_size number of bytes in a horizontal line of block
* @param h height
+ * @note The size is kept at [4][4] to match the above pixel_tabs and avoid
+ * out of bounds reads in the motion estimation code.
*/
op_pixels_func put_no_rnd_pixels_tab[4][4];