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

Philip Langdale philipl at overt.org
Sun Jun 14 06:10:32 CEST 2015


On Sat, 13 Jun 2015 22:21:54 +0200
Timo Rothenpieler <timo at rothenpieler.org> wrote:

> > 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
> 

Pushed. Thanks.


--phil


More information about the ffmpeg-devel mailing list