• James Almer's avatar
    avcodec/decode: add a flags parameter to ff_reget_buffer() · 9ea6d214
    James Almer authored
    Some decoders may not need a writable buffer in some specific cases, but only
    a reference to the existing buffer with updated frame properties instead, for
    the purpose of returning duplicate frames. For this, the
    FF_REGET_BUFFER_FLAG_READONLY flag is added, which will prevent potential
    allocations and buffer copies when they are not needed.
    Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
    9ea6d214
mss1.c 6.12 KB