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/vc1dec.c | |
parent | 8b3e6ce5f4ab1ebf3a54ff7e0ff440a1a5f842f7 (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/vc1dec.c')
-rw-r--r-- | libavcodec/vc1dec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 8f112bf9b2..6cd74a09f1 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -1196,7 +1196,7 @@ static const enum AVPixelFormat vc1_hwaccel_pixfmt_list_420[] = { AV_PIX_FMT_NONE }; -AVCodec ff_vc1_decoder = { +const AVCodec ff_vc1_decoder = { .name = "vc1", .long_name = NULL_IF_CONFIG_SMALL("SMPTE VC-1"), .type = AVMEDIA_TYPE_VIDEO, @@ -1233,7 +1233,7 @@ AVCodec ff_vc1_decoder = { }; #if CONFIG_WMV3_DECODER -AVCodec ff_wmv3_decoder = { +const AVCodec ff_wmv3_decoder = { .name = "wmv3", .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 9"), .type = AVMEDIA_TYPE_VIDEO, @@ -1271,7 +1271,7 @@ AVCodec ff_wmv3_decoder = { #endif #if CONFIG_WMV3IMAGE_DECODER -AVCodec ff_wmv3image_decoder = { +const AVCodec ff_wmv3image_decoder = { .name = "wmv3image", .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 9 Image"), .type = AVMEDIA_TYPE_VIDEO, @@ -1290,7 +1290,7 @@ AVCodec ff_wmv3image_decoder = { #endif #if CONFIG_VC1IMAGE_DECODER -AVCodec ff_vc1image_decoder = { +const AVCodec ff_vc1image_decoder = { .name = "vc1image", .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 9 Image v2"), .type = AVMEDIA_TYPE_VIDEO, |