[FFmpeg-devel] [PATCH] avcodec/nvenc: Make pix_fmts_nvenc const

Michael Niedermayer michaelni at gmx.at
Sun May 3 04:14:45 CEST 2015


On Sat, May 02, 2015 at 10:40:59PM +0200, Timo Rothenpieler wrote:
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  libavcodec/nvenc.c |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
> > index 445d60f..de082d1 100644
> > --- a/libavcodec/nvenc.c
> > +++ b/libavcodec/nvenc.c
> > @@ -1375,7 +1375,7 @@ static int nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
> >      return 0;
> >  }
> >  
> > -static enum AVPixelFormat pix_fmts_nvenc[] = {
> > +static const enum AVPixelFormat pix_fmts_nvenc[] = {
> >      AV_PIX_FMT_NV12,
> >      AV_PIX_FMT_NONE
> >  };
> > 
> 
> LGTM of course

applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150503/6b382dcf/attachment.asc>


More information about the ffmpeg-devel mailing list