mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 12:36:42 +00:00
Use for_each to clear the ffmpeg stream packets
This commit is contained in:
parent
2989a1e06e
commit
7b22ee6fd1
1 changed files with 1 additions and 2 deletions
|
@ -373,8 +373,7 @@ void FFmpeg_Decoder::readAll(std::vector<char> &output)
|
||||||
void FFmpeg_Decoder::rewind()
|
void FFmpeg_Decoder::rewind()
|
||||||
{
|
{
|
||||||
av_seek_frame(mFormatCtx, -1, 0, 0);
|
av_seek_frame(mFormatCtx, -1, 0, 0);
|
||||||
for(size_t i = 0;i < mStreams.size();i++)
|
std::for_each(mStreams.begin(), mStreams.end(), std::mem_fun(&MyStream::clearPackets));
|
||||||
mStreams[i]->clearPackets();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FFmpeg_Decoder::FFmpeg_Decoder() : mFormatCtx(NULL)
|
FFmpeg_Decoder::FFmpeg_Decoder() : mFormatCtx(NULL)
|
||||||
|
|
Loading…
Reference in a new issue