• Andreas Rheinhardt's avatar
    avformat/aviobuf: Add ffio_init_(read|write)_context() · 7001ff74
    Andreas Rheinhardt authored
    Most users of ffio_init_context() simply want to wrap
    a buffer into an AVIOContext; they do not provide
    function pointers at all.
    
    Therefore this commit adds shortcuts for these two common
    operations. This also allows to accept const data when reading
    (i.e. the const is now cast away at a central place in
    ffio_init_read_context() instead of at several callers).
    This also allows to constify the data in ff_text_init_buf().
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
    7001ff74
id3v2.c 35.2 KB