diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-04-11 10:37:24 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-04-13 12:14:30 +0200 |
commit | 32413600e8d020fbab2c050c0b10b6e65533ddba (patch) | |
tree | 5bfaff09508df4dcbc0a90880652b95786f8150b /libavcodec/encode.c | |
parent | 1c01dca14471774b93a418127555d85ceb641333 (diff) |
lavc/encode: drop EncodeSimpleContext
It has only a single member.
Diffstat (limited to 'libavcodec/encode.c')
-rw-r--r-- | libavcodec/encode.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/encode.c b/libavcodec/encode.c index 305b732b1c..3d862a0c24 100644 --- a/libavcodec/encode.c +++ b/libavcodec/encode.c @@ -175,8 +175,7 @@ int ff_encode_get_frame(AVCodecContext *avctx, AVFrame *frame) static int encode_simple_internal(AVCodecContext *avctx, AVPacket *avpkt) { AVCodecInternal *avci = avctx->internal; - EncodeSimpleContext *es = &avci->es; - AVFrame *frame = es->in_frame; + AVFrame *frame = avci->in_frame; const FFCodec *const codec = ffcodec(avctx->codec); int got_packet; int ret; @@ -565,8 +564,8 @@ FF_ENABLE_DEPRECATION_WARNINGS avctx->internal->intra_only_flag = AV_PKT_FLAG_KEY; if (ffcodec(avctx->codec)->cb.encode) { - avci->es.in_frame = av_frame_alloc(); - if (!avci->es.in_frame) + avci->in_frame = av_frame_alloc(); + if (!avci->in_frame) return AVERROR(ENOMEM); } |