diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-09-03 22:43:30 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-09-03 22:43:30 +0200 |
commit | 98f75b273bf2df1fc66566f38f48e0753f6742d9 (patch) | |
tree | 6a6d862c52d705b3761fe97249d71a0803192930 /src/encoder/video | |
parent | 867ef7a2976f477bb232d102ed6f6f93c09ce160 (diff) |
More cleanup
Diffstat (limited to 'src/encoder/video')
-rw-r--r-- | src/encoder/video/cuda.c | 1 | ||||
-rw-r--r-- | src/encoder/video/vaapi.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/src/encoder/video/cuda.c b/src/encoder/video/cuda.c index c7112c3..9681418 100644 --- a/src/encoder/video/cuda.c +++ b/src/encoder/video/cuda.c @@ -50,7 +50,6 @@ static bool gsr_video_encoder_cuda_setup_context(gsr_video_encoder_cuda *self, A hw_frame_context->height = video_codec_context->height; hw_frame_context->sw_format = self->params.color_depth == GSR_COLOR_DEPTH_10_BITS ? AV_PIX_FMT_P010LE : AV_PIX_FMT_NV12; hw_frame_context->format = video_codec_context->pix_fmt; - hw_frame_context->device_ref = self->device_ctx; hw_frame_context->device_ctx = (AVHWDeviceContext*)self->device_ctx->data; if (av_hwframe_ctx_init(frame_context) < 0) { diff --git a/src/encoder/video/vaapi.c b/src/encoder/video/vaapi.c index 2b4d1ba..e96319f 100644 --- a/src/encoder/video/vaapi.c +++ b/src/encoder/video/vaapi.c @@ -47,7 +47,6 @@ static bool gsr_video_encoder_vaapi_setup_context(gsr_video_encoder_vaapi *self, hw_frame_context->height = video_codec_context->height; hw_frame_context->sw_format = self->params.color_depth == GSR_COLOR_DEPTH_10_BITS ? AV_PIX_FMT_P010LE : AV_PIX_FMT_NV12; hw_frame_context->format = video_codec_context->pix_fmt; - hw_frame_context->device_ref = self->device_ctx; hw_frame_context->device_ctx = (AVHWDeviceContext*)self->device_ctx->data; //hw_frame_context->initial_pool_size = 20; |