diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2011-07-01 14:58:24 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2011-07-01 18:18:53 +0200 |
commit | 392acaedcb052fa64386d5d0aea4931386f72d64 (patch) | |
tree | d9d9496b59806b2e5a92d7c5bea589d60662104b /libavdevice/alsa-audio.h | |
parent | 46edd3a01b68f7a1ca833510bef39f599a5055c9 (diff) | |
download | ffmpeg-392acaedcb052fa64386d5d0aea4931386f72d64.tar.gz |
ALSA: fix use of period_size.
period_size is in frames, while the demuxer assumed it was in bytes,
resulting in short reads.
Diffstat (limited to 'libavdevice/alsa-audio.h')
-rw-r--r-- | libavdevice/alsa-audio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/alsa-audio.h b/libavdevice/alsa-audio.h index 0f467e34c9..9b1ecb1696 100644 --- a/libavdevice/alsa-audio.h +++ b/libavdevice/alsa-audio.h @@ -45,8 +45,8 @@ typedef void (*ff_reorder_func)(const void *, void *, int); typedef struct { AVClass *class; snd_pcm_t *h; - int frame_size; ///< preferred size for reads and writes - int period_size; ///< bytes per sample * channels + int frame_size; ///< bytes per sample * channels + int period_size; ///< preferred size for reads and writes, in frames int sample_rate; ///< sample rate set by user int channels; ///< number of channels set by user void (*reorder_func)(const void *, void *, int); |