mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-04 17:38:05 +00:00
Fix sample back pressure leading to increased memory usage over time in
FfmpegDecoder.
This commit is contained in:
parent
2692882150
commit
042c857895
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user