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

Timo Rothenpieler timo at rothenpieler.org
Sat May 2 22:40:59 CEST 2015


> 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

-------------- 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/20150502/e3e3bca9/attachment.asc>


More information about the ffmpeg-devel mailing list