diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-08-29 18:42:47 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-08-31 10:25:36 +0200 |
commit | c9a4ec79690fcc36fbac6fcc77cc0ab128a91a82 (patch) | |
tree | d8705d9361c3aec2b1d8ac222ad6bf2d6c442bac | |
parent | 18464d7270d2f9290fdd07c7726d16a7abf05dc6 (diff) | |
download | ffmpeg-c9a4ec79690fcc36fbac6fcc77cc0ab128a91a82.tar.gz |
lavfi: add const/static const to pix_fmts arrays.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
-rw-r--r-- | libavfilter/vf_blackdetect.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_lenscorrection.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_signalstats.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_tinterlace.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_blackdetect.c b/libavfilter/vf_blackdetect.c index 94af61346a..87a7a23fa4 100644 --- a/libavfilter/vf_blackdetect.c +++ b/libavfilter/vf_blackdetect.c @@ -64,7 +64,7 @@ AVFILTER_DEFINE_CLASS(blackdetect); #define YUVJ_FORMATS \ AV_PIX_FMT_YUVJ411P, AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P -static enum AVPixelFormat yuvj_formats[] = { +static const enum AVPixelFormat yuvj_formats[] = { YUVJ_FORMATS, AV_PIX_FMT_NONE }; diff --git a/libavfilter/vf_lenscorrection.c b/libavfilter/vf_lenscorrection.c index 58184b0e17..9fb14246ef 100644 --- a/libavfilter/vf_lenscorrection.c +++ b/libavfilter/vf_lenscorrection.c @@ -98,7 +98,7 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs) static int query_formats(AVFilterContext *ctx) { - static enum AVPixelFormat pix_fmts[] = { + static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUVJ420P, diff --git a/libavfilter/vf_signalstats.c b/libavfilter/vf_signalstats.c index 263de23513..53f7401888 100644 --- a/libavfilter/vf_signalstats.c +++ b/libavfilter/vf_signalstats.c @@ -94,7 +94,7 @@ static av_cold void uninit(AVFilterContext *ctx) static int query_formats(AVFilterContext *ctx) { // TODO: add more - enum AVPixelFormat pix_fmts[] = { + static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P, AV_PIX_FMT_NONE }; diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c index 3ebb971646..6bc55b5960 100644 --- a/libavfilter/vf_tinterlace.c +++ b/libavfilter/vf_tinterlace.c @@ -80,7 +80,7 @@ AVFILTER_DEFINE_CLASS(tinterlace); #define FULL_SCALE_YUVJ_FORMATS \ AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P -static enum AVPixelFormat full_scale_yuvj_pix_fmts[] = { +static const enum AVPixelFormat full_scale_yuvj_pix_fmts[] = { FULL_SCALE_YUVJ_FORMATS, AV_PIX_FMT_NONE }; |