summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@users.sourceforge.net>2010-03-23 14:08:03 +0200
committerPetri Hintukainen <phintuka@users.sourceforge.net>2010-03-23 14:08:03 +0200
commitb362fde1e91190d1988b4a1aea7b453fe6d72bc6 (patch)
treeebfc1c9e1281748b586244de800796d457b1aeaa
parent7b59e87707f4796d9399721abe643cfd1c9ec1c1 (diff)
downloadxine-lib-b362fde1e91190d1988b4a1aea7b453fe6d72bc6.tar.gz
xine-lib-b362fde1e91190d1988b4a1aea7b453fe6d72bc6.tar.bz2
Fixed using uninitialized decode_buffer_size
-rw-r--r--src/combined/ffmpeg/ff_audio_decoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/combined/ffmpeg/ff_audio_decoder.c b/src/combined/ffmpeg/ff_audio_decoder.c
index 26e1ac168..125eff12c 100644
--- a/src/combined/ffmpeg/ff_audio_decoder.c
+++ b/src/combined/ffmpeg/ff_audio_decoder.c
@@ -285,6 +285,7 @@ static void ff_audio_decode_data (audio_decoder_t *this_gen, buf_element_t *buf)
if (!this->output_open) {
if (!this->audio_bits || !this->audio_sample_rate || !this->audio_channels) {
+ decode_buffer_size = AVCODEC_MAX_AUDIO_FRAME_SIZE;
avcodec_decode_audio2 (this->context,
(int16_t *)this->decode_buffer,
&decode_buffer_size,