assert(pts >= dts);
AVPacket pkt_copy;
- av_init_packet(&pkt_copy);
if (av_packet_ref(&pkt_copy, &pkt) < 0) {
fprintf(stderr, "av_copy_packet() failed\n");
abort();
// Make sure the header is written before the constructor exits
// (assuming we are in WRITE_FOREGROUND mode).
avio_flush(avctx->pb);
+
}
void MuxMetrics::init(const vector<pair<string, string>> &labels)