You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
av1dec: update hwaccel decode_params on AV1_OBU_SEQUENCE_HEADER
Previously, the callback was only called on init. This makes it get called on every frame. We should switch to VK_KHR_video_maintenance2 and provide all params upfront, but almost nothing supports it yet.
This commit is contained in:
@ -1329,6 +1329,15 @@ static int av1_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame)
|
|||||||
|
|
||||||
s->pix_fmt = AV_PIX_FMT_NONE;
|
s->pix_fmt = AV_PIX_FMT_NONE;
|
||||||
|
|
||||||
|
if (FF_HW_HAS_CB(avctx, decode_params)) {
|
||||||
|
ret = FF_HW_CALL(avctx, decode_params, AV1_OBU_SEQUENCE_HEADER,
|
||||||
|
s->seq_data_ref->data, s->seq_data_ref->size);
|
||||||
|
if (ret < 0) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR, "HW accel decode params fail.\n");
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case AV1_OBU_REDUNDANT_FRAME_HEADER:
|
case AV1_OBU_REDUNDANT_FRAME_HEADER:
|
||||||
if (s->raw_frame_header)
|
if (s->raw_frame_header)
|
||||||
|
Reference in New Issue
Block a user