[FFmpeg-devel] [PATCH] avcodec/nvenc: Enable YV12 input format

Philip Langdale philipl at overt.org
Sat Jun 13 19:28:15 CEST 2015


This has been enabled by recent nvidia driver releases.

Signed-off-by: Philip Langdale <philipl at overt.org>
---
 libavcodec/nvenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 87ce6f3..a5652c5 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
 };
-- 
2.1.4



More information about the ffmpeg-devel mailing list