You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fixed a big audio bug, where varying timestamp values on low precision audio timebases (i.e. 1/1000) would leave small gaps in the audio wave. Also, fixed a few issues related to sample_rate getting lost between the reader and clip and timeline objects.
This commit is contained in:
16
src/Clip.cpp
16
src/Clip.cpp
@@ -191,9 +191,6 @@ tr1::shared_ptr<Frame> Clip::GetFrame(int requested_frame) throw(ReaderClosed)
|
||||
// Get time mapped frame number (used to increase speed, change direction, etc...)
|
||||
tr1::shared_ptr<Frame> new_frame = get_time_mapped_frame(frame, requested_frame);
|
||||
|
||||
// Apply basic image processing (scale, rotation, etc...)
|
||||
//apply_basic_image_processing(new_frame, new_frame_number);
|
||||
|
||||
// Return processed 'frame'
|
||||
return new_frame;
|
||||
}
|
||||
@@ -450,19 +447,6 @@ tr1::shared_ptr<Frame> Clip::get_time_mapped_frame(tr1::shared_ptr<Frame> frame,
|
||||
return new_frame;
|
||||
}
|
||||
|
||||
// Apply basic image processing (scale, rotate, move, etc...)
|
||||
void Clip::apply_basic_image_processing(tr1::shared_ptr<Frame> frame, int frame_number)
|
||||
{
|
||||
// Get values
|
||||
float rotation_value = rotation.GetValue(frame_number);
|
||||
//float scale_x_value = scale_x.GetValue(frame_number);
|
||||
//float scale_y_value = scale_y.GetValue(frame_number);
|
||||
|
||||
// rotate frame
|
||||
if (rotation_value != 0)
|
||||
frame->Rotate(rotation_value);
|
||||
}
|
||||
|
||||
// Adjust frame number minimum value
|
||||
int Clip::adjust_frame_number_minimum(int frame_number)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user