]> git.sesse.net Git - ffmpeg/commit
avdevice/alsa_dec: make sure we have enough data in non-blocking mode
authorMarton Balint <cus@passwd.hu>
Tue, 9 Feb 2021 21:24:50 +0000 (22:24 +0100)
committerMarton Balint <cus@passwd.hu>
Fri, 12 Mar 2021 22:55:30 +0000 (23:55 +0100)
commit1a90cf4410a3464c8d749242e23629776f310ee0
tree29e9f37ea37029c880933fa0508e26d6fbfd283d
parent6e7e3a3820f0888ff92d6be44f40ff733bcce874
avdevice/alsa_dec: make sure we have enough data in non-blocking mode

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 <cus@passwd.hu>
libavdevice/alsa.c
libavdevice/alsa.h
libavdevice/alsa_dec.c