OSDN Git Service

lavfi: fix realloc size computation in avfilter_add_format()
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 19 Jun 2011 20:07:18 +0000 (22:07 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 19 Jun 2011 20:58:31 +0000 (22:58 +0200)
commit8f349b64813b348634042d96b9d104ada94dc538
tree34357580468269a31e3cf31f3d62b380eeb8608e
parentc6e288a7cd3f92d09a59671f81119c9643d8589c
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 *).
libavfilter/formats.c