]> git.sesse.net Git - vlc/commit
mmal/codec: Check picture buffer size before usage
authorJulian Scheel <julian@jusst.de>
Thu, 4 Sep 2014 10:43:02 +0000 (12:43 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 4 Sep 2014 16:19:35 +0000 (18:19 +0200)
commita0ffd5a2e6659965207ae9a70e5f81ec09792567
tree46aac6f3cdc7209ea81033e1c1fb7fd083a8c817
parentc1a536563747efb51e0b844d4a756dc0b749224a
mmal/codec: Check picture buffer size before usage

We need to make sure that a buffer is big enough to store the amount of data
we expect to receive from the decoder. Without doing this memory could be
corrupted due to the decoder writing outside the allocate memory.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/hw/mmal/codec.c