summaryrefslogtreecommitdiff
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-04-11 10:37:24 +0200
committerAnton Khirnov <anton@khirnov.net>2022-04-13 12:14:30 +0200
commit32413600e8d020fbab2c050c0b10b6e65533ddba (patch)
tree5bfaff09508df4dcbc0a90880652b95786f8150b /libavcodec/internal.h
parent1c01dca14471774b93a418127555d85ceb641333 (diff)
lavc/encode: drop EncodeSimpleContext
It has only a single member.
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index f9d08fcb60..2fa56d3a59 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -47,10 +47,6 @@
# define STRIDE_ALIGN 8
#endif
-typedef struct EncodeSimpleContext {
- AVFrame *in_frame;
-} EncodeSimpleContext;
-
typedef struct AVCodecInternal {
/**
* When using frame-threaded decoding, this field is set for the first
@@ -101,7 +97,13 @@ typedef struct AVCodecInternal {
void *frame_thread_encoder;
- EncodeSimpleContext es;
+ /**
+ * The input frame is stored here for encoders implementing the simple
+ * encode API.
+ *
+ * Not allocated in other cases.
+ */
+ AVFrame *in_frame;
/**
* If this is set, then FFCodec->close (if existing) needs to be called