summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-02 15:00:35 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-03 04:14:01 +0200
commit29ef54aa9086d90d9ef2b7b3badd9aa7508f4281 (patch)
tree5feb4dfaec06bd273a29e5629041a046f4ef66a9 /libavcodec/nvenc.c
parent14605a0b991585f55be07f23e53f263d97e46eac (diff)
avcodec/nvenc: Make pix_fmts_nvenc const
Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c2
1 files changed, 1 insertions, 1 deletions
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
};