[FFmpeg-devel] [PATCH 1/5] avdevice/alsa_dec: do not set codecpar frame_size
Marton Balint
cus at passwd.hu
Sun Feb 21 18:46:55 EET 2021
Constant frame size is not guaranteed if the read call interrupted by a signal,
or if non-blocking mode is used.
Signed-off-by: Marton Balint <cus at passwd.hu>
---
libavdevice/alsa_dec.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/libavdevice/alsa_dec.c b/libavdevice/alsa_dec.c
index 36494e921c..6d568737b3 100644
--- a/libavdevice/alsa_dec.c
+++ b/libavdevice/alsa_dec.c
@@ -83,7 +83,6 @@ static av_cold int audio_read_header(AVFormatContext *s1)
st->codecpar->codec_id = codec_id;
st->codecpar->sample_rate = s->sample_rate;
st->codecpar->channels = s->channels;
- st->codecpar->frame_size = s->frame_size;
avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */
/* microseconds instead of seconds, MHz instead of Hz */
s->timefilter = ff_timefilter_new(1000000.0 / s->sample_rate,
--
2.26.2
More information about the ffmpeg-devel
mailing list