You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Made Keyframe objects thread safe, by generating the values as Points are added, and the Timeline's Open and Close logic was made thread safe, so a reader is not closed while it's still being accessed on another thread. Also removed some unneeded code and comments.
This commit is contained in:
@@ -199,9 +199,6 @@ void FFmpegReader::UpdateAudioInfo()
|
||||
info.audio_timebase.num = aStream->time_base.num;
|
||||
info.audio_timebase.den = aStream->time_base.den;
|
||||
|
||||
cout << "aStream->time_base: " << aStream->time_base.num << "/" << aStream->time_base.den << endl;
|
||||
cout << "aCodecCtx->time_base: " << aCodecCtx->time_base.num << "/" << aCodecCtx->time_base.den << endl;
|
||||
|
||||
// Get timebase of audio stream (if valid)
|
||||
if (aStream->duration > 0.0f)
|
||||
info.duration = aStream->duration * info.audio_timebase.ToDouble();
|
||||
|
||||
Reference in New Issue
Block a user