History

avcodec/internal: Move FF_MAX_EXTRADATA_SIZE to its only user

Andreas Rheinhardt committed 3 years ago

Commit 866be3f1 parent 92f0d692 files · +7 −7Browse files

Unified · Split

2 files
  1. libavcodec/avcodec.c +7 −0
  2. libavcodec/internal.h +0 −7
libavcodec/avcodec.c+7−0
@@ -44,6 +44,13 @@ · 43 unmodified lines
4444 #include "internal.h"
4545 #include "thread.h"
4646
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+
4754 int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size)
4855 {
4956 size_t i;
libavcodec/internal.h+0−7
@@ -159,13 +159,6 @@ unsigned int ff_toupper4(unsigned int x); · 158 unmodified lines
159159
160160 void ff_color_frame(AVFrame *frame, const int color[4]);
161161
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−
169162 /**
170163 * 2^(x) for integer x
171164 * @return correctly rounded float

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t