Showing the changes to libavcodec/avcodec.c (1 of 2 files). Show all
Unified · Split
| @@ -44,6 +44,13 @@ · 43 unmodified lines | ||
| 44 | 44 | #include "internal.h" |
| 45 | 45 | #include "thread.h" |
| 46 | 46 | |
| 47 | +/** | |
| 48 | + * Maximum size in bytes of extradata. | |
| 49 | + * This value was chosen such that every bit of the buffer is | |
| 50 | + * addressable by a 32-bit signed integer as used by get_bits. | |
| 51 | + */ | |
| 52 | +#define FF_MAX_EXTRADATA_SIZE ((1 << 28) - AV_INPUT_BUFFER_PADDING_SIZE) | |
| 53 | + | |
| 47 | 54 | int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size) |
| 48 | 55 | { |
| 49 | 56 | size_t i; |