[FFmpeg-cvslog] avcodec/nvenc: Make pix_fmts_nvenc const

Michael Niedermayer git at videolan.org
Sun May 3 04:42:45 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May  2 15:00:35 2015 +0200| [29ef54aa9086d90d9ef2b7b3badd9aa7508f4281] | committer: Michael Niedermayer

avcodec/nvenc: Make pix_fmts_nvenc const

Reviewed-by: Timo Rothenpieler <timo at rothenpieler.org>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=29ef54aa9086d90d9ef2b7b3badd9aa7508f4281
---

 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
 };



More information about the ffmpeg-cvslog mailing list