From 01fac84fe4351eeadf852bd5a932eea517a9b210 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sat, 6 Jun 2015 20:28:22 -0700 Subject: [PATCH] avcodec/nvenc: Enable YV12 input format This has been enabled by recent nvidia driver releases. Signed-off-by: Philip Langdale --- libavcodec/nvenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 87ce6f35cb..a5652c545a 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -1376,6 +1376,7 @@ static int nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt, } static const enum AVPixelFormat pix_fmts_nvenc[] = { + AV_PIX_FMT_YUV420P, AV_PIX_FMT_NV12, AV_PIX_FMT_NONE };