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
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
47int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size)54int 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;
libavcodec/internal.h+0−7
@@ -159,13 +159,6 @@ unsigned int ff_toupper4(unsigned int x); · 158 unmodified lines
159 159
160void ff_color_frame(AVFrame *frame, const int color[4]);160void 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 x163 * 2^(x) for integer x
171 * @return correctly rounded float164 * @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