avcodec/nvenc: Make pix_fmts_nvenc const
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 2 May 2015 13:00:35 +0000 (15:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 3 May 2015 02:14:01 +0000 (04:14 +0200)
Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/nvenc.c

index 445d60f..de082d1 100644 (file)
@@ -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
 };