avcodec_receive_frame

Return decoded output data from a decoder.

@param avctx codec context @param frame This will be set to a reference-counted video or audio frame (depending on the decoder type) allocated by the decoder. Note that the function will always call av_frame_unref(frame) before doing anything else.

@return 0: success, a frame was returned AVERROR(EAGAIN): output is not available in this state - user must try to send new input

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

Detailed Description

AVERROR EOF

the decoder has been fully flushed, and there will be no more output frames AVERROR(EINVAL): codec not opened, or it is an encoder other negative values: legitimate decoding errors

Meta