• Martin Storsjö's avatar
    libx264: Pass the reordered_opaque field through the encoder · 80f85a95
    Martin Storsjö authored
    libx264 does have a field for opaque data to pass along with frames
    through the encoder, but it is a pointer, while the libavcodec
    reordered_opaque field is an int64_t. Therefore, allocate an array
    within the libx264 wrapper, where reordered_opaque values in flight
    are stored, and pass a pointer to this array to libx264.
    
    Update the public libavcodec documentation for the AVCodecContext
    field to explain this usage, and add a codec capability that allows
    detecting whether an encoder handles this field.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    80f85a95
avcodec.h 176 KB