• Andreas Rheinhardt's avatar
    avformat/avio: Move internal AVIOContext fields to avio_internal.h · 45bfe8b8
    Andreas Rheinhardt authored
    Currently AVIOContext's private fields are all over AVIOContext.
    This commit moves them into a new structure in avio_internal.h instead.
    Said structure contains the public AVIOContext as its first element
    in order to avoid having to allocate a separate AVIOContextInternal
    which is costly for those use cases where one just wants to access
    an already existing buffer via the AVIOContext-API.
    For these cases ffio_init_context() can't fail and always returned zero,
    which was typically not checked. Therefore it has been made to not
    return anything.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
    45bfe8b8
mpjpegdec.c 10.2 KB