MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_encode_receive_frame

Function ff_encode_receive_frame

libavcodec/encode.c:860–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

858}
859
860int 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
873void ff_encode_flush_buffers(AVCodecContext *avctx)
874{

Callers 1

Calls 1

av_frame_move_refFunction · 0.85

Tested by

no test coverage detected