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

Function avcodec_receive_frame_flags

libavcodec/avcodec.c:710–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708}
709
710int attribute_align_arg avcodec_receive_frame_flags(AVCodecContext *avctx,
711 AVFrame *frame, unsigned flags)
712{
713 av_frame_unref(frame);
714
715 if (!avcodec_is_open(avctx) || !avctx->codec)
716 return AVERROR(EINVAL);
717
718 if (ff_codec_is_decoder(avctx->codec))
719 return ff_decode_receive_frame(avctx, frame, flags);
720 return ff_encode_receive_frame(avctx, frame);
721}
722
723int avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame)
724{

Callers 2

packet_decodeFunction · 0.85
avcodec_receive_frameFunction · 0.85

Calls 5

av_frame_unrefFunction · 0.85
avcodec_is_openFunction · 0.85
ff_codec_is_decoderFunction · 0.85
ff_decode_receive_frameFunction · 0.85
ff_encode_receive_frameFunction · 0.85

Tested by

no test coverage detected