mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/codec_internal: Use union for FFCodec decode/encode callbacks
This is possible, because every given FFCodec has to implement exactly one of these. Doing so decreases sizeof(FFCodec) and therefore decreases the size of the binary. Notice that in case of position-independent code the decrease is in .data.rel.ro, so that this translates to decreased memory consumption. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
ce7dbd0481
commit
4243da4ff4
498 changed files with 760 additions and 675 deletions
|
|
@ -620,7 +620,7 @@ const FFCodec ff_librav1e_encoder = {
|
|||
.p.type = AVMEDIA_TYPE_VIDEO,
|
||||
.p.id = AV_CODEC_ID_AV1,
|
||||
.init = librav1e_encode_init,
|
||||
.receive_packet = librav1e_receive_packet,
|
||||
FF_CODEC_RECEIVE_PACKET_CB(librav1e_receive_packet),
|
||||
.close = librav1e_encode_close,
|
||||
.priv_data_size = sizeof(librav1eContext),
|
||||
.p.priv_class = &class,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue