| 858 | } |
| 859 | |
| 860 | int ff_encode_receive_frame(AVCodecContext *avctx, AVFrame *frame) |
| 861 | { |
| 862 | AVCodecInternal *avci = avctx->internal; |
| 863 | |
| 864 | if (!avci->recon_frame) |
| 865 | return AVERROR(EINVAL); |
| 866 | if (!avci->recon_frame->buf[0]) |
| 867 | return avci->draining_done ? AVERROR_EOF : AVERROR(EAGAIN); |
| 868 | |
| 869 | av_frame_move_ref(frame, avci->recon_frame); |
| 870 | return 0; |
| 871 | } |
| 872 | |
| 873 | void ff_encode_flush_buffers(AVCodecContext *avctx) |
| 874 | { |
no test coverage detected