diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-05-11 19:46:13 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-05-11 19:46:17 +0100 |
commit | c71c3b9ff4f19a219f11c64f8bd923085ac1b823 (patch) | |
tree | b230aacd21db83997f5a660d3a04e8aa31ca34ea /libavutil/hwcontext.c | |
parent | ed8bacfb5ca888255e8e15e44fb25722d31cf565 (diff) | |
parent | a0f469da744db83db32f3fe13186ee4aa2bc7dc5 (diff) | |
download | ffmpeg-c71c3b9ff4f19a219f11c64f8bd923085ac1b823.tar.gz |
Merge commit 'a0f469da744db83db32f3fe13186ee4aa2bc7dc5'
* commit 'a0f469da744db83db32f3fe13186ee4aa2bc7dc5':
hwcontext: initialize sw_format in av_hwframe_ctx_alloc()
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavutil/hwcontext.c')
-rw-r--r-- | libavutil/hwcontext.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/hwcontext.c b/libavutil/hwcontext.c index b34b317d5d..619f21eab3 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; |