Commit 479241da authored by sumit's avatar sumit Committed by Timo Rothenpieler

ffmpeg_cuvid: add 420 10-bit transcode support for hwaccel cuvid

Signed-off-by: 's avatarTimo Rothenpieler <timo@rothenpieler.org>
parent 26d5caf6
......@@ -135,7 +135,7 @@ int cuvid_transcode_init(OutputStream *ost)
*/
hwframe_ctx = (AVHWFramesContext*)ctx->hw_frames_ctx->data;
hwframe_ctx->format = AV_PIX_FMT_CUDA;
hwframe_ctx->sw_format = AV_PIX_FMT_NV12;
hwframe_ctx->sw_format = ist->st->codecpar->format == AV_PIX_FMT_YUV420P10 ? AV_PIX_FMT_P010 : AV_PIX_FMT_NV12;
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment