VSE: Fix "off by one" error when encoding audio
Before we didn't encode the audio up until the current frame. This lead to us not encoding the last video frame of audio. Reviewed By: Richard Antalik Differential Revision: http://developer.blender.org/D11918
This commit is contained in:
parent
ab572f3ac1
commit
9511009438
Notes:
blender-bot
2023-02-14 01:21:16 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
|
@ -1433,8 +1433,9 @@ int BKE_ffmpeg_append(void *context_v,
|
|||
}
|
||||
|
||||
# ifdef WITH_AUDASPACE
|
||||
write_audio_frames(context,
|
||||
(frame - start_frame) / (((double)rd->frs_sec) / (double)rd->frs_sec_base));
|
||||
/* Add +1 frame because we want to encode audio up until the next video frame. */
|
||||
write_audio_frames(
|
||||
context, (frame - start_frame + 1) / (((double)rd->frs_sec) / (double)rd->frs_sec_base));
|
||||
# endif
|
||||
return success;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue