[FFmpeg-devel] [PATCH 1/3] lavd/alsa: set frame_size field.
Nicolas George
george at nsup.org
Mon Feb 16 22:22:15 CET 2015
The value tells the typical size of a packet from the demuxer.
Signed-off-by: Nicolas George <george at nsup.org>
---
libavdevice/alsa-audio-common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c
index bf876ed..f4b86bb 100644
--- a/libavdevice/alsa-audio-common.c
+++ b/libavdevice/alsa-audio-common.c
@@ -260,7 +260,7 @@ av_cold int ff_alsa_open(AVFormatContext *ctx, snd_pcm_stream_t mode,
snd_strerror(res));
goto fail;
}
- s->period_size = period_size;
+ ctx->streams[0]->codec->frame_size = s->period_size = period_size;
res = snd_pcm_hw_params(h, hw_params);
if (res < 0) {
--
2.1.4
More information about the ffmpeg-devel
mailing list