summaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-04-15 10:15:54 +0200
committerAnton Khirnov <anton@khirnov.net>2016-04-15 10:15:54 +0200
commita0f469da744db83db32f3fe13186ee4aa2bc7dc5 (patch)
treec9173af0d821002ae608c240ae5a29b44a7d8252 /libavutil
parent5e1a3ea3ba7bb0c71d931e93e60fb75f51b0cc1a (diff)
downloadffmpeg-streaming-a0f469da744db83db32f3fe13186ee4aa2bc7dc5.zip
ffmpeg-streaming-a0f469da744db83db32f3fe13186ee4aa2bc7dc5.tar.gz
hwcontext: initialize sw_format in av_hwframe_ctx_alloc()
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/hwcontext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/hwcontext.c b/libavutil/hwcontext.c
index ac1e2c9..9ffc718 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;
OpenPOWER on IntegriCloud