diff options
author | Lynne <dev@lynne.ee> | 2025-03-13 16:26:40 +0000 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2025-03-17 08:51:23 +0100 |
commit | caff29dbb18feeb87cb00fc4c33d20cf01667be0 (patch) | |
tree | e99f15bb25ccf6961daf31ca082ed17320085c2f /libavcodec/ffv1dec.c | |
parent | 23eb499b282ab1952461872ddea008adc7f95413 (diff) | |
download | ffmpeg-caff29dbb18feeb87cb00fc4c33d20cf01667be0.tar.gz |
FFHWAccel: add buffer_ref argument to start_frame
This commit adds a reference to the buffer as an argument to
start_frame, and adapts all existing code.
This allows for asynchronous hardware accelerators to skip
copying packet data by referencing it.
Diffstat (limited to 'libavcodec/ffv1dec.c')
-rw-r--r-- | libavcodec/ffv1dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c index f221af7ad9..6196c15865 100644 --- a/libavcodec/ffv1dec.c +++ b/libavcodec/ffv1dec.c @@ -742,7 +742,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *rframe, /* Start */ if (hwaccel) { - ret = hwaccel->start_frame(avctx, avpkt->data, avpkt->size); + ret = hwaccel->start_frame(avctx, avpkt->buf, avpkt->data, avpkt->size); if (ret < 0) return ret; } |