diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-08-02 13:08:16 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-08-05 09:40:06 +0200 |
commit | 866be3fa1ede44aae1f2af5ed398c84da3e82b6b (patch) | |
tree | 694f96a2c9d125cf25c40b20ce16427a8838a455 | |
parent | 92f0d6984609f9d85fed95f4922558b069739d85 (diff) | |
download | ffmpeg-866be3fa1ede44aae1f2af5ed398c84da3e82b6b.tar.gz |
avcodec/internal: Move FF_MAX_EXTRADATA_SIZE to its only user
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/avcodec.c | 7 | ||||
-rw-r--r-- | libavcodec/internal.h | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/avcodec.c b/libavcodec/avcodec.c index 340abe830e..0700a53b5c 100644 --- a/libavcodec/avcodec.c +++ b/libavcodec/avcodec.c @@ -44,6 +44,13 @@ #include "internal.h" #include "thread.h" +/** + * Maximum size in bytes of extradata. + * This value was chosen such that every bit of the buffer is + * addressable by a 32-bit signed integer as used by get_bits. + */ +#define FF_MAX_EXTRADATA_SIZE ((1 << 28) - AV_INPUT_BUFFER_PADDING_SIZE) + int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size) { size_t i; diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 4dce9f6fbb..480b18b447 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -160,13 +160,6 @@ unsigned int ff_toupper4(unsigned int x); void ff_color_frame(AVFrame *frame, const int color[4]); /** - * Maximum size in bytes of extradata. - * This value was chosen such that every bit of the buffer is - * addressable by a 32-bit signed integer as used by get_bits. - */ -#define FF_MAX_EXTRADATA_SIZE ((1 << 28) - AV_INPUT_BUFFER_PADDING_SIZE) - -/** * 2^(x) for integer x * @return correctly rounded float */ |