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
|
|
@ -153,7 +153,7 @@ read_header:
|
|||
return buf_size;
|
||||
}
|
||||
|
||||
AVCodec ff_mjpegb_decoder = {
|
||||
const AVCodec ff_mjpegb_decoder = {
|
||||
.name = "mjpegb",
|
||||
.long_name = NULL_IF_CONFIG_SMALL("Apple MJPEG-B"),
|
||||
.type = AVMEDIA_TYPE_VIDEO,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue