summaryrefslogtreecommitdiff
path: root/libavcodec/decode.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-07-16 16:36:23 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-02 10:46:11 +0200
commite3838b856f3cfa0a85db0bf427a0f733110c5158 (patch)
treef999c1f000992123e85a5857e9b111862f8a3c03 /libavcodec/decode.c
parenteede1d2927db18b962741e6a09ec1401fdad6277 (diff)
lavc: add API for exporting reconstructed frames from encoders
Diffstat (limited to 'libavcodec/decode.c')
-rw-r--r--libavcodec/decode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 92958745df..75373989c6 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -697,13 +697,11 @@ static int apply_cropping(AVCodecContext *avctx, AVFrame *frame)
AV_FRAME_CROP_UNALIGNED : 0);
}
-int attribute_align_arg avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame)
+int ff_decode_receive_frame(AVCodecContext *avctx, AVFrame *frame)
{
AVCodecInternal *avci = avctx->internal;
int ret, changed;
- av_frame_unref(frame);
-
if (!avcodec_is_open(avctx) || !av_codec_is_decoder(avctx->codec))
return AVERROR(EINVAL);