Fixing a bug for newer versions of LibAV and FFmpeg, regarding error codes

This commit is contained in:
Jonathan Thomas
2015-10-01 13:00:50 -05:00
parent affaa7a8ca
commit 95deda88bc
3 changed files with 11 additions and 6 deletions

View File

@@ -1142,6 +1142,11 @@ void FFmpegReader::ProcessAudioPacket(long int requested_frame, long int target_
// No other thread is processing it. Mark the audio as processed (final)
processed_audio_frames[f] = f;
}
if (target_frame == starting_frame_number) {
// This typically never happens, but just in case, remove the currently processing number
processing_audio_frames.erase(processing_audio_frames.find(target_frame));
}
}
// Remove this packet