[][src]Function ffmpeg_sys_next::avcodec_receive_frame

pub unsafe extern "C" fn avcodec_receive_frame(
    avctx: *mut AVCodecContext,
    frame: *mut AVFrame
) -> c_int

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 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 AVERROR_INPUT_CHANGED: current decoded frame has changed parameters with respect to first decoded frame. Applicable when flag AV_CODEC_FLAG_DROPCHANGED is set. other negative values: legitimate decoding errors