avcodec_receive_packet

Read encoded data from the encoder.

@param avctx codec context @param avpkt This will be set to a reference-counted packet allocated by the encoder. Note that the function will always call av_packet_unref(avpkt) before doing anything else. @return 0 on success, otherwise negative error code: AVERROR(EAGAIN): output is not available in the current state - user must try to send input

More...
extern (C) @nogc nothrow
int
avcodec_receive_packet

Detailed Description

AVERROR EOF

the encoder has been fully flushed, and there will be no more output packets AVERROR(EINVAL): codec not opened, or it is a decoder other errors: legitimate encoding errors

Meta