diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-07-16 16:36:23 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-08-02 10:46:11 +0200 |
commit | e3838b856f3cfa0a85db0bf427a0f733110c5158 (patch) | |
tree | f999c1f000992123e85a5857e9b111862f8a3c03 /libavcodec/decode.c | |
parent | eede1d2927db18b962741e6a09ec1401fdad6277 (diff) | |
download | ffmpeg-e3838b856f3cfa0a85db0bf427a0f733110c5158.tar.gz |
lavc: add API for exporting reconstructed frames from encoders
Diffstat (limited to 'libavcodec/decode.c')
-rw-r--r-- | libavcodec/decode.c | 4 |
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); |