On Sun, 28 Feb 2021, Nicolas George wrote:
Marton Balint (12021-02-21):
Otherwise we might return 1-2 samples per packet if av_read_frame() call rate is
only sligthly less than the stream sample rate.
Signed-off-by: Marton Balint <c...@passwd.hu>
---
libavdevice/alsa_dec.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
Looping snd_pcm_readi() seems like a more robust solution to this issue.
Robust how? For non-blocking mode that would mean you have to keep the
read data in the context if you read less than period size. Doable, but
I wanted to avoid it.
Regards,
Marton
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".