Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-25 12:50:26 +0300
committerJames Almer <jamrial@gmail.com>2021-04-27 16:43:15 +0300
commita247ac640df3da573cd661065bf53f37863e2b46 (patch)
tree2702a356900eebec67e06871428dfe2e10e71618 /libavcodec/pnmenc.c
parent8b3e6ce5f4ab1ebf3a54ff7e0ff440a1a5f842f7 (diff)
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/pnmenc.c')
-rw-r--r--libavcodec/pnmenc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/pnmenc.c b/libavcodec/pnmenc.c
index 56e929a5f0..80c7b66332 100644
--- a/libavcodec/pnmenc.c
+++ b/libavcodec/pnmenc.c
@@ -149,7 +149,7 @@ static int pnm_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
}
#if CONFIG_PGM_ENCODER
-AVCodec ff_pgm_encoder = {
+const AVCodec ff_pgm_encoder = {
.name = "pgm",
.long_name = NULL_IF_CONFIG_SMALL("PGM (Portable GrayMap) image"),
.type = AVMEDIA_TYPE_VIDEO,
@@ -163,7 +163,7 @@ AVCodec ff_pgm_encoder = {
#endif
#if CONFIG_PGMYUV_ENCODER
-AVCodec ff_pgmyuv_encoder = {
+const AVCodec ff_pgmyuv_encoder = {
.name = "pgmyuv",
.long_name = NULL_IF_CONFIG_SMALL("PGMYUV (Portable GrayMap YUV) image"),
.type = AVMEDIA_TYPE_VIDEO,
@@ -177,7 +177,7 @@ AVCodec ff_pgmyuv_encoder = {
#endif
#if CONFIG_PPM_ENCODER
-AVCodec ff_ppm_encoder = {
+const AVCodec ff_ppm_encoder = {
.name = "ppm",
.long_name = NULL_IF_CONFIG_SMALL("PPM (Portable PixelMap) image"),
.type = AVMEDIA_TYPE_VIDEO,
@@ -191,7 +191,7 @@ AVCodec ff_ppm_encoder = {
#endif
#if CONFIG_PBM_ENCODER
-AVCodec ff_pbm_encoder = {
+const AVCodec ff_pbm_encoder = {
.name = "pbm",
.long_name = NULL_IF_CONFIG_SMALL("PBM (Portable BitMap) image"),
.type = AVMEDIA_TYPE_VIDEO,
@@ -204,7 +204,7 @@ AVCodec ff_pbm_encoder = {
#endif
#if CONFIG_PFM_ENCODER
-AVCodec ff_pfm_encoder = {
+const AVCodec ff_pfm_encoder = {
.name = "pfm",
.long_name = NULL_IF_CONFIG_SMALL("PFM (Portable FloatMap) image"),
.type = AVMEDIA_TYPE_VIDEO,