We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3420b34 commit 55a7e7eCopy full SHA for 55a7e7e
ffmpeg_vaapi.c
@@ -157,6 +157,7 @@ int vaapi_decode_init(AVCodecContext *avctx)
157
if (!ctx)
158
return AVERROR(ENOMEM);
159
ctx->class = &vaapi_class;
160
+ ist->hwaccel_ctx = ctx;
161
162
ctx->device_ref = av_buffer_ref(hw_device_ctx);
163
ctx->device = (AVHWDeviceContext*)ctx->device_ref->data;
@@ -202,7 +203,6 @@ int vaapi_decode_init(AVCodecContext *avctx)
202
203
goto fail;
204
}
205
- ist->hwaccel_ctx = ctx;
206
ist->hwaccel_uninit = &vaapi_decode_uninit;
207
ist->hwaccel_get_buffer = &vaapi_get_buffer;
208
ist->hwaccel_retrieve_data = &vaapi_retrieve_data;
0 commit comments