fix reversal of in_frame/out_frame in VideoStore destructor

This commit is contained in:
Isaac Connor 2019-10-18 10:16:18 -04:00
parent 60ec545683
commit 17a7d02275
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ VideoStore::~VideoStore() {
* At the end of the file, we pass the remaining samples to * At the end of the file, we pass the remaining samples to
* the encoder. */ * the encoder. */
while ( zm_resample_get_delay(resample_ctx, audio_out_ctx->sample_rate) ) { while ( zm_resample_get_delay(resample_ctx, audio_out_ctx->sample_rate) ) {
zm_resample_audio(resample_ctx, out_frame, NULL); zm_resample_audio(resample_ctx, NULL, out_frame);
if ( zm_add_samples_to_fifo(fifo, out_frame) ) { if ( zm_add_samples_to_fifo(fifo, out_frame) ) {
// Should probably set the frame size to what is reported FIXME // Should probably set the frame size to what is reported FIXME