summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-04 10:42:23 +0100
committerwm4 <wm4@nowhere>2015-02-04 10:42:23 +0100
commitb715fb6df19b7d359073e93654d736f66085be91 (patch)
tree8d4014c2c4e82bf98ab5127ba4095df338eba7d2 /demux
parenta501e2a6d1377dcb24a0b2e55aded28280efa3fe (diff)
downloadmpv-b715fb6df19b7d359073e93654d736f66085be91.tar.bz2
mpv-b715fb6df19b7d359073e93654d736f66085be91.tar.xz
demux_raw: output smaller audio packets
Currently, audio packets are always filtered as a whole. Since demux_raw output a 1 second long packet, this could lead to large delays when applying softvol volume. It could be fixed by splitting the frames the decoder outputs before filtering them (like the old filter code used to), but since this didn't cause any other problems yet, I'm going with the simpler fix. Fixes #1558.
Diffstat (limited to 'demux')
-rw-r--r--demux/demux_raw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_raw.c b/demux/demux_raw.c
index d054dbdf01..bd928cc49f 100644
--- a/demux/demux_raw.c
+++ b/demux/demux_raw.c
@@ -148,7 +148,7 @@ static int demux_rawaudio_open(demuxer_t *demuxer, enum demux_check check)
*p = (struct priv) {
.frame_size = samplesize * sh_audio->channels.num,
.frame_rate = sh_audio->samplerate,
- .read_frames = sh_audio->samplerate,
+ .read_frames = sh_audio->samplerate / 8,
};
return 0;