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

Showing the changes to libavcodec/avcodec.c (1 of 2 files). Show all

Unified · Split

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;

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