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

Function fifo_write_header

libavformat/fifo.c:585–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585static int fifo_write_header(AVFormatContext *avf)
586{
587 FifoContext * fifo = avf->priv_data;
588 int ret;
589
590 ret = pthread_create(&fifo->writer_thread, NULL, fifo_consumer_thread, avf);
591 if (ret) {
592 av_log(avf, AV_LOG_ERROR, "Failed to start thread: %s\n",
593 av_err2str(AVERROR(ret)));
594 ret = AVERROR(ret);
595 }
596
597 return ret;
598}
599
600static int fifo_write_packet(AVFormatContext *avf, AVPacket *pkt)
601{

Callers

nothing calls this directly

Calls 2

av_logFunction · 0.85
pthread_createFunction · 0.50

Tested by

no test coverage detected