diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-25 10:50:26 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-27 10:43:15 -0300 |
commit | a247ac640df3da573cd661065bf53f37863e2b46 (patch) | |
tree | 2702a356900eebec67e06871428dfe2e10e71618 /libavcodec/pnmdec.c | |
parent | 8b3e6ce5f4ab1ebf3a54ff7e0ff440a1a5f842f7 (diff) | |
download | ffmpeg-a247ac640df3da573cd661065bf53f37863e2b46.tar.gz |
avcodec: Constify AVCodecs
Given that the AVCodec.next pointer has now been removed, most of the
AVCodecs are not modified at all any more and can therefore be made
const (as this patch does); the only exceptions are the very few codecs
for external libraries that have a init_static_data callback.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/pnmdec.c')
-rw-r--r-- | libavcodec/pnmdec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c index 4d5ce0bcb5..01f9dade1a 100644 --- a/libavcodec/pnmdec.c +++ b/libavcodec/pnmdec.c @@ -329,7 +329,7 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data, #if CONFIG_PGM_DECODER -AVCodec ff_pgm_decoder = { +const AVCodec ff_pgm_decoder = { .name = "pgm", .long_name = NULL_IF_CONFIG_SMALL("PGM (Portable GrayMap) image"), .type = AVMEDIA_TYPE_VIDEO, @@ -341,7 +341,7 @@ AVCodec ff_pgm_decoder = { #endif #if CONFIG_PGMYUV_DECODER -AVCodec ff_pgmyuv_decoder = { +const AVCodec ff_pgmyuv_decoder = { .name = "pgmyuv", .long_name = NULL_IF_CONFIG_SMALL("PGMYUV (Portable GrayMap YUV) image"), .type = AVMEDIA_TYPE_VIDEO, @@ -353,7 +353,7 @@ AVCodec ff_pgmyuv_decoder = { #endif #if CONFIG_PPM_DECODER -AVCodec ff_ppm_decoder = { +const AVCodec ff_ppm_decoder = { .name = "ppm", .long_name = NULL_IF_CONFIG_SMALL("PPM (Portable PixelMap) image"), .type = AVMEDIA_TYPE_VIDEO, @@ -365,7 +365,7 @@ AVCodec ff_ppm_decoder = { #endif #if CONFIG_PBM_DECODER -AVCodec ff_pbm_decoder = { +const AVCodec ff_pbm_decoder = { .name = "pbm", .long_name = NULL_IF_CONFIG_SMALL("PBM (Portable BitMap) image"), .type = AVMEDIA_TYPE_VIDEO, @@ -377,7 +377,7 @@ AVCodec ff_pbm_decoder = { #endif #if CONFIG_PAM_DECODER -AVCodec ff_pam_decoder = { +const AVCodec ff_pam_decoder = { .name = "pam", .long_name = NULL_IF_CONFIG_SMALL("PAM (Portable AnyMap) image"), .type = AVMEDIA_TYPE_VIDEO, @@ -389,7 +389,7 @@ AVCodec ff_pam_decoder = { #endif #if CONFIG_PFM_DECODER -AVCodec ff_pfm_decoder = { +const AVCodec ff_pfm_decoder = { .name = "pfm", .long_name = NULL_IF_CONFIG_SMALL("PFM (Portable FloatMap) image"), .type = AVMEDIA_TYPE_VIDEO, |