[vlc-devel] [PATCH 4/9] aout: DecSilence: always use i_bytes_per_frame
Thomas Guillem
thomas at gllm.fr
Wed Oct 5 18:37:47 CEST 2016
---
src/audio_output/dec.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 925afaf..230fcf9 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -206,12 +206,8 @@ static void aout_DecSilence (audio_output_t *aout, mtime_t length, mtime_t pts)
aout_owner_t *owner = aout_owner (aout);
const audio_sample_format_t *fmt = &owner->mixer_format;
size_t frames = (fmt->i_rate * length) / CLOCK_FREQ;
- block_t *block;
- if (AOUT_FMT_SPDIF(fmt) || AOUT_FMT_HDMI(fmt))
- block = block_Alloc (4 * frames);
- else
- block = block_Alloc (frames * fmt->i_bytes_per_frame);
+ block_t *block = block_Alloc (frames * fmt->i_bytes_per_frame);
if (unlikely(block == NULL))
return; /* uho! */
--
2.9.3
More information about the vlc-devel
mailing list