From a0f469da744db83db32f3fe13186ee4aa2bc7dc5 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 15 Apr 2016 10:15:54 +0200 Subject: hwcontext: initialize sw_format in av_hwframe_ctx_alloc() --- libavutil/hwcontext.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavutil') diff --git a/libavutil/hwcontext.c b/libavutil/hwcontext.c index ac1e2c9d67..9ffc7189ce 100644 --- a/libavutil/hwcontext.c +++ b/libavutil/hwcontext.c @@ -209,6 +209,7 @@ AVBufferRef *av_hwframe_ctx_alloc(AVBufferRef *device_ref_in) ctx->device_ref = device_ref; ctx->device_ctx = device_ctx; ctx->format = AV_PIX_FMT_NONE; + ctx->sw_format = AV_PIX_FMT_NONE; ctx->internal->hw_type = hw_type; -- cgit v1.2.3