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

Function log_slave

libavformat/tee.c:410–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410static void log_slave(TeeSlave *slave, void *log_ctx, int log_level)
411{
412 av_log(log_ctx, log_level, "filename:'%s' format:%s\n",
413 slave->avf->url, slave->avf->oformat->name);
414 for (unsigned i = 0; i < slave->avf->nb_streams; i++) {
415 AVStream *st = slave->avf->streams[i];
416 AVBSFContext *bsf = slave->bsfs[i];
417 const char *bsf_name;
418
419 av_log(log_ctx, log_level, " stream:%d codec:%s type:%s",
420 i, avcodec_get_name(st->codecpar->codec_id),
421 av_get_media_type_string(st->codecpar->codec_type));
422
423 bsf_name = bsf->filter->priv_class ?
424 bsf->filter->priv_class->item_name(bsf) : bsf->filter->name;
425 av_log(log_ctx, log_level, " bsfs: %s\n", bsf_name);
426 }
427}
428
429static int tee_process_slave_failure(AVFormatContext *avf, unsigned slave_idx, int err_n)
430{

Callers 1

tee_write_headerFunction · 0.85

Calls 3

av_logFunction · 0.85
avcodec_get_nameFunction · 0.85
av_get_media_type_stringFunction · 0.85

Tested by

no test coverage detected