mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-24 07:18:22 -04:00
Fix #2728 by resetting the frame size before reading from the fifo
This commit is contained in:
1 parent
2bf9852404
commit
d9d91c4a8d
1 file changed
+3
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user