| 643 | } |
| 644 | |
| 645 | void 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 | |
| 651 | AVFrame* FfmpegDecoder::AllocFrame(AVFrame* original, AVSampleFormat format, int sampleRate, int frameSize) { |
| 652 | bool frameSizeChanged = original && frameSize > 0 && frameSize != original->nb_samples; |
no test coverage detected