added real portable mode

This commit is contained in:
itsmattkc
2018-10-29 18:15:50 +11:00
parent a54fee767d
commit 0817a1e486
10 changed files with 39 additions and 14 deletions
+1 -1
View File
@@ -319,6 +319,6 @@ void stop_recording() {
}
}
const QString& get_recorded_audio_filename() {
QString get_recorded_audio_filename() {
return output_recording.fileName();
}
+1 -1
View File
@@ -48,7 +48,7 @@ int get_buffer_offset_from_frame(Sequence *s, long frame);
bool start_recording();
void stop_recording();
const QString& get_recorded_audio_filename();
QString get_recorded_audio_filename();
extern bool recording;
#endif // AUDIO_H
+1 -2
View File
@@ -114,8 +114,7 @@ void get_clip_frame(Clip* c, long playhead) {
MediaStream* ms = static_cast<Media*>(c->media)->get_stream_from_file_index(c->track < 0, c->media_stream);
int64_t target_pts = playhead_to_timestamp(c, playhead);
int64_t second_pts = qRound64(av_q2d(av_inv_q(c->stream->time_base)));
int64_t quarter_pts = second_pts >> 2;
int64_t second_pts = qRound64(av_q2d(av_inv_q(c->stream->time_base)));
if (ms->video_interlacing != VIDEO_PROGRESSIVE) {
target_pts *= 2;
second_pts *= 2;