avcodec: add AVHWAccel.free_frame_priv callback

This commit is contained in:
Lynne
2022-03-10 18:03:05 +01:00
parent 09dc9193ea
commit be07145109
9 changed files with 50 additions and 7 deletions

View File

@@ -2259,6 +2259,14 @@ typedef struct AVHWAccel {
* For thread-safe hwaccels only.
*/
int (*update_thread_context)(AVCodecContext *dst, const AVCodecContext *src);
/**
* Callback to free the hwaccel-specific frame data.
*
* @param hwctx a pointer to an AVHWDeviceContext.
* @param data the per-frame hardware accelerator private data to be freed.
*/
void (*free_frame_priv)(void *hwctx, uint8_t *data);
} AVHWAccel;
/**