mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
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>
This commit is contained in:
parent
8b3e6ce5f4
commit
a247ac640d
482 changed files with 1378 additions and 1368 deletions
|
|
@ -688,7 +688,7 @@ static const AVClass vaapi_encode_mpeg2_class = {
|
|||
.version = LIBAVUTIL_VERSION_INT,
|
||||
};
|
||||
|
||||
AVCodec ff_mpeg2_vaapi_encoder = {
|
||||
const AVCodec ff_mpeg2_vaapi_encoder = {
|
||||
.name = "mpeg2_vaapi",
|
||||
.long_name = NULL_IF_CONFIG_SMALL("MPEG-2 (VAAPI)"),
|
||||
.type = AVMEDIA_TYPE_VIDEO,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue