Skip to content
  • Julian Scheel's avatar
    mmal: Fix buffer size computation · 54f93974
    Julian Scheel authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
    
    
    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: default avatarJulian Scheel <julian@jusst.de>
    Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
    54f93974