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

Function flush_init_segment

libavformat/dashenc.c:453–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453static int flush_init_segment(AVFormatContext *s, OutputStream *os)
454{
455 DASHContext *c = s->priv_data;
456 int ret, range_length;
457
458 ret = flush_dynbuf(c, os, &range_length);
459 if (ret < 0)
460 return ret;
461
462 os->pos = os->init_range_length = range_length;
463 if (!c->single_file) {
464 char filename[1024];
465 snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile);
466 dashenc_io_close(s, &os->out, filename);
467 }
468 return 0;
469}
470
471static void dash_free(AVFormatContext *s)
472{

Callers 2

dash_write_headerFunction · 0.85
dash_write_packetFunction · 0.85

Calls 2

dashenc_io_closeFunction · 0.85
flush_dynbufFunction · 0.70

Tested by

no test coverage detected