MCPcopy Create free account
hub / github.com/clangen/musikcube / FlushAndFinalizeDecoder

Method FlushAndFinalizeDecoder

src/plugins/ffmpegdecoder/FfmpegDecoder.cpp:645–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643}
644
645void FfmpegDecoder::FlushAndFinalizeDecoder() {
646 /* reading from a packet with a null `data` pointer is a "flush" operation,
647 and the decoder will stop accepting new data */
648 this->ReadSendAndReceivePacket(nullptr);
649}
650
651AVFrame* FfmpegDecoder::AllocFrame(AVFrame* original, AVSampleFormat format, int sampleRate, int frameSize) {
652 bool frameSizeChanged = original && frameSize > 0 && frameSize != original->nb_samples;

Callers 1

GetBufferMethod · 0.95

Calls 1

Tested by

no test coverage detected