Files
FFmpeg/libavcodec
Andreas Rheinhardt 295abb1fdc avcodec/mpegvideo_enc: Reduce stack usage
Multiple PutBitContexts are used when encoding partitioned
frames. When there are multiple candidates for macroblock types,
multiple states (namely the state before encoding the current MB,
the best state among the ones already tried and the current one)
need to be kept; duplicates of the PutBitContexts are among this
state. The temporary buffers for them are kept on the stack
in encode_thread() and their size is quite generous (MAX_MB_SIZE
- 3000 bytes). This commit uses tighter bounds, bringing the
size of the pb2 buffer down to 15 bytes.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2025-05-26 04:02:58 +02:00
..
2025-04-13 22:49:21 +02:00
2025-02-26 17:12:08 +01:00
2025-02-26 17:12:08 +01:00
2024-08-14 18:21:01 +02:00
2025-02-04 00:14:14 +01:00
2025-04-27 15:52:30 +01:00
2025-04-27 15:52:30 +01:00
2025-04-27 15:52:30 +01:00
2025-04-27 15:52:30 +01:00
2025-05-15 01:51:34 +02:00
2025-04-27 15:52:30 +01:00
2025-04-27 15:52:30 +01:00
2025-05-04 16:21:35 -03:00
2025-05-13 00:20:23 +02:00
2024-09-28 18:35:35 +02:00
2024-09-28 18:35:35 +02:00
2025-01-01 20:31:08 +01:00
2025-03-17 08:51:23 +01:00
2024-07-12 22:42:28 +02:00
2024-09-24 15:37:19 +02:00
2025-05-09 22:26:51 +02:00
2025-04-10 03:01:33 +02:00
2025-05-01 22:42:34 -03:00
2024-11-03 10:53:15 +11:00
2024-11-03 10:53:15 +11:00
2024-11-03 10:53:15 +11:00
2024-11-03 10:53:15 +11:00
2025-04-02 09:25:46 +02:00
2025-04-02 09:25:46 +02:00
2025-03-20 07:10:17 +01:00
2025-05-15 03:03:56 +02:00
2024-10-12 11:21:14 -03:00
2024-10-12 11:21:14 -03:00
2024-10-12 11:21:14 -03:00
2024-11-01 12:13:07 +08:00
2024-09-24 15:37:19 +02:00
2024-06-12 12:07:49 +02:00
2025-05-16 01:37:35 +02:00
2025-04-21 17:02:44 +02:00
2025-02-09 20:27:49 -06:00
2024-10-31 17:49:48 +11:00
2025-04-25 23:01:37 +02:00
2024-10-31 17:49:48 +11:00
2025-04-25 23:01:38 +02:00
2024-09-24 15:37:20 +02:00