Fix sample back pressure leading to increased memory usage over time in

FfmpegDecoder.
This commit is contained in:
casey langen 2021-09-20 08:05:16 -07:00
parent 2692882150
commit 042c857895

View File

@ -429,6 +429,10 @@ bool FfmpegDecoder::ReadSendAndReceivePacket(AVPacket* packet) {
return false;
}
/* there may still be pending data in the resampler, go ahead
and write to the fifo right now so it doesn't back up */
this->DrainResamplerToFifoQueue();
decodedAtLeastOneFrame = true;
}
}