From 29ef54aa9086d90d9ef2b7b3badd9aa7508f4281 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 2 May 2015 15:00:35 +0200 Subject: [PATCH] avcodec/nvenc: Make pix_fmts_nvenc const Reviewed-by: Timo Rothenpieler Signed-off-by: Michael Niedermayer --- libavcodec/nvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 445d60fe2c..de082d1fc7 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 };