[FFmpeg-cvslog] hpeldsp: Explain why put_no_rnd_pixels_tab is larger than necessary

Diego Biurrun git at videolan.org
Wed Mar 15 13:34:26 EET 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Tue Jan 19 17:57:03 2016 +0100| [48b80f8393d418ad35d73f5a36f5011de1928f3c] | committer: Diego Biurrun

hpeldsp: Explain why put_no_rnd_pixels_tab is larger than necessary

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=48b80f8393d418ad35d73f5a36f5011de1928f3c
---

 libavcodec/hpeldsp.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/hpeldsp.h b/libavcodec/hpeldsp.h
index d037cba..62dee68 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];
 



More information about the ffmpeg-cvslog mailing list