[FFmpeg-devel] [PATCH 2/5] avdevice/alsa_dec: make sure we have enough data in non-blocking mode

Nicolas George george at nsup.org
Sun Feb 28 15:02:12 EET 2021


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 <cus at 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.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210228/88a3f87b/attachment.sig>


More information about the ffmpeg-devel mailing list