Commit 29ef54aa authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/nvenc: Make pix_fmts_nvenc const

Reviewed-by: 's avatarTimo Rothenpieler <timo@rothenpieler.org>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 14605a0b
...@@ -1375,7 +1375,7 @@ static int nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt, ...@@ -1375,7 +1375,7 @@ static int nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
return 0; return 0;
} }
static enum AVPixelFormat pix_fmts_nvenc[] = { static const enum AVPixelFormat pix_fmts_nvenc[] = {
AV_PIX_FMT_NV12, AV_PIX_FMT_NV12,
AV_PIX_FMT_NONE AV_PIX_FMT_NONE
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment