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/msmpeg4dec.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/msmpeg4dec.c')
-rw-r--r-- | libavcodec/msmpeg4dec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/msmpeg4dec.c b/libavcodec/msmpeg4dec.c index ef8d510a02..f302509589 100644 --- a/libavcodec/msmpeg4dec.c +++ b/libavcodec/msmpeg4dec.c @@ -855,7 +855,7 @@ void ff_msmpeg4_decode_motion(MpegEncContext *s, int *mx_ptr, int *my_ptr) *my_ptr = my; } -AVCodec ff_msmpeg4v1_decoder = { +const AVCodec ff_msmpeg4v1_decoder = { .name = "msmpeg4v1", .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 1"), .type = AVMEDIA_TYPE_VIDEO, @@ -873,7 +873,7 @@ AVCodec ff_msmpeg4v1_decoder = { }, }; -AVCodec ff_msmpeg4v2_decoder = { +const AVCodec ff_msmpeg4v2_decoder = { .name = "msmpeg4v2", .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 2"), .type = AVMEDIA_TYPE_VIDEO, @@ -891,7 +891,7 @@ AVCodec ff_msmpeg4v2_decoder = { }, }; -AVCodec ff_msmpeg4v3_decoder = { +const AVCodec ff_msmpeg4v3_decoder = { .name = "msmpeg4", .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 3"), .type = AVMEDIA_TYPE_VIDEO, @@ -909,7 +909,7 @@ AVCodec ff_msmpeg4v3_decoder = { }, }; -AVCodec ff_wmv1_decoder = { +const AVCodec ff_wmv1_decoder = { .name = "wmv1", .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 7"), .type = AVMEDIA_TYPE_VIDEO, |