mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-19 07:56:39 +08:00
hwcontext: initialize sw_format in av_hwframe_ctx_alloc()
This commit is contained in:
@ -209,6 +209,7 @@ AVBufferRef *av_hwframe_ctx_alloc(AVBufferRef *device_ref_in)
|
|||||||
ctx->device_ref = device_ref;
|
ctx->device_ref = device_ref;
|
||||||
ctx->device_ctx = device_ctx;
|
ctx->device_ctx = device_ctx;
|
||||||
ctx->format = AV_PIX_FMT_NONE;
|
ctx->format = AV_PIX_FMT_NONE;
|
||||||
|
ctx->sw_format = AV_PIX_FMT_NONE;
|
||||||
|
|
||||||
ctx->internal->hw_type = hw_type;
|
ctx->internal->hw_type = hw_type;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user