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

Function decode_simple_receive_frame

libavcodec/decode.c:598–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598static int decode_simple_receive_frame(AVCodecContext *avctx, AVFrame *frame)
599{
600 int ret;
601 int64_t discarded_samples = 0;
602
603 while (!frame->buf[0]) {
604 if (discarded_samples > avctx->max_samples)
605 return AVERROR(EAGAIN);
606 ret = decode_simple_internal(avctx, frame, &discarded_samples);
607 if (ret < 0)
608 return ret;
609 }
610
611 return 0;
612}
613
614int ff_decode_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame)
615{

Callers 1

Calls 1

decode_simple_internalFunction · 0.85

Tested by

no test coverage detected