Fix #2728 by resetting the frame size before reading from the fifo

This commit is contained in:
Isaac Connor 2019-10-20 13:32:16 -04:00
parent 2bf9852404
commit d9d91c4a8d
1 changed files with 3 additions and 0 deletions

View File

@ -952,6 +952,9 @@ int VideoStore::writeAudioFramePacket(AVPacket *ipkt) {
if ( zm_add_samples_to_fifo(fifo, out_frame) <= 0 )
break;
// We put the samples into the fifo so we are basically resetting the frame
out_frame->nb_samples = audio_out_ctx->frame_size;
if ( zm_get_samples_from_fifo(fifo, out_frame) <= 0 )
break;