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

Michael Niedermayer michaelni at gmx.at
Sat May 2 15:13:37 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
 };
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list