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

Timo Rothenpieler timo at rothenpieler.org
Sat Jun 13 22:21:54 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
>  };
> 

LGTM

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150613/2f9fa967/attachment.asc>


More information about the ffmpeg-devel mailing list