• wm4's avatar
    mmaldec: refactor to have more context per MMAL input buffer · 65db4899
    wm4 authored
    The next commit needs 1 bit of additional information per MMAL buffer
    sent to the MMAL input port. This information will be needed when the
    buffer is recycled (i.e. returned by the input port's callback).
    Normally, we could use MMAL_BUFFER_HEADER_FLAG_USER0, but that is
    unexpectedly not preserved.
    
    Do this by storing a pointer to FFBufferEntry in the MMAL buffer's
    user data, instead of an AVBufferRef. This also changes the lifetime
    of FFBufferEntry.
    Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
    65db4899
mmaldec.c 24.5 KB