Unified · Split
| @@ -44,6 +44,13 @@ · 43 unmodified lines | |||
| 44 | #include "internal.h" | 44 | #include "internal.h" |
| 45 | #include "thread.h" | 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 | int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size) | 54 | int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size) |
| 48 | { | 55 | { |
| 49 | size_t i; | 56 | size_t i; |
| @@ -159,13 +159,6 @@ unsigned int ff_toupper4(unsigned int x); · 158 unmodified lines | |||
| 159 | 159 | ||
| 160 | void ff_color_frame(AVFrame *frame, const int color[4]); | 160 | void ff_color_frame(AVFrame *frame, const int color[4]); |
| 161 | 161 | ||
| 162 | /** | ||
| 163 | * Maximum size in bytes of extradata. | ||
| 164 | * This value was chosen such that every bit of the buffer is | ||
| 165 | * addressable by a 32-bit signed integer as used by get_bits. | ||
| 166 | */ | ||
| 167 | #define FF_MAX_EXTRADATA_SIZE ((1 << 28) - AV_INPUT_BUFFER_PADDING_SIZE) | ||
| 168 | |||
| 169 | /** | 162 | /** |
| 170 | * 2^(x) for integer x | 163 | * 2^(x) for integer x |
| 171 | * @return correctly rounded float | 164 | * @return correctly rounded float |