MCPcopy Create free account
hub / github.com/byhook/ffmpeg4android / get_input_packet

Function get_input_packet

ffmpeg-single-cmd/src/main/cpp/ffmpeg_mod.c:4059–4077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4057#endif
4058
4059static int get_input_packet(InputFile *f, AVPacket *pkt)
4060{
4061 if (f->rate_emu) {
4062 int i;
4063 for (i = 0; i < f->nb_streams; i++) {
4064 InputStream *ist = input_streams[f->ist_index + i];
4065 int64_t pts = av_rescale(ist->dts, 1000000, AV_TIME_BASE);
4066 int64_t now = av_gettime_relative() - ist->start;
4067 if (pts > now)
4068 return AVERROR(EAGAIN);
4069 }
4070 }
4071
4072#if HAVE_PTHREADS
4073 if (nb_input_files > 1)
4074 return get_input_packet_mt(f, pkt);
4075#endif
4076 return av_read_frame(f->ctx, pkt);
4077}
4078
4079static int got_eagain(void)
4080{

Callers 1

process_inputFunction · 0.85

Calls 1

get_input_packet_mtFunction · 0.85

Tested by

no test coverage detected