Skip to content

Commit

Permalink
Set sw_format in the hardware device context to NV12
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgepigdaniel authored and ammen99 committed Mar 19, 2019
1 parent def38d0 commit 869ae36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frame-writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void FrameWriter::init_hw_accel()
ctx->width = params.width;
ctx->height = params.height;
ctx->format = cst->valid_hw_formats[0];
ctx->sw_format = AV_PIX_FMT_RGB0;
ctx->sw_format = AV_PIX_FMT_NV12;

if (av_hwframe_ctx_init(hw_frame_context))
{
Expand Down

0 comments on commit 869ae36

Please sign in to comment.