From: Stefano Sabatini Date: Sun, 19 Jun 2011 20:07:18 +0000 (+0200) Subject: lavfi: fix realloc size computation in avfilter_add_format() X-Git-Tag: n0.9~57^2~891 X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/0ec56d1144fa4ea36950295987bb5f49c9747046?hp=0ec56d1144fa4ea36950295987bb5f49c9747046 lavfi: fix realloc size computation in avfilter_add_format() Replace sizeof((*avff)->formats) with sizeof(*(*avff)->formats) as the size of the array element is given by the pointed element rather than by its pointer. In particular fix computation with the pending patch when sizeof(int64_t) != sizeof(int64_t *). Signed-off-by: Anton Khirnov ---