The value tells the typical size of a packet from the demuxer.
Signed-off-by: Nicolas George <[email protected]>
---
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
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel