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 <[email protected]>
---
 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
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to