]> git.sesse.net Git - vlc/commit
mmal: Fix buffer size computation
authorJulian Scheel <julian@jusst.de>
Thu, 9 Oct 2014 12:49:39 +0000 (14:49 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 9 Oct 2014 12:53:12 +0000 (14:53 +0200)
commit54f93974a92c55c4266578779a9e3e143969fc70
treed7ef3fb59845230de61aafeded295c559e8b1e0a
parent04e9ee96722d3b23e2b78d27ef236ec34558b3b8
mmal: Fix buffer size computation

The buffer sizes in opaque case were computed by a mixture of hardcoded values
and mmal defaults. This caused breakage due to changes of the default values
in recent mmal versions. To avoid this in the future, the buffer sizes are
completely hardcoded now. As we have a shared header for mmal now, move the
required define for shared values into that header.
Using this new computation we can reduce the buffer size for opaque case by 2,
which saves some memory.

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