summaryrefslogtreecommitdiff
path: root/libavcodec/hpeldsp.h
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-03-15 12:34:51 +0100
committerClément Bœsch <cboesch@gopro.com>2017-03-15 12:34:51 +0100
commit6426c58b1cb91b05699e19aab50763eabb63dc57 (patch)
tree619adc9b5298ef11a58cc1fad0b1e66d120644dd /libavcodec/hpeldsp.h
parent8b13492c9ecf85f1f674f99df370a19992b3910a (diff)
parent48b80f8393d418ad35d73f5a36f5011de1928f3c (diff)
Merge commit '48b80f8393d418ad35d73f5a36f5011de1928f3c'
* commit '48b80f8393d418ad35d73f5a36f5011de1928f3c': hpeldsp: Explain why put_no_rnd_pixels_tab is larger than necessary Merged-by: Clément Bœsch <cboesch@gopro.com>
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 1a3cea54b8..768139bfc9 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];