[vlc-commits] dca: set output buffer size correctly (fixes #6509, fixes #7459)
Rémi Denis-Courmont
git at videolan.org
Mon Oct 1 21:11:53 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct 1 22:04:20 2012 +0300| [244a35b0301164f753a381f569181c6bd3419ad1] | committer: Rémi Denis-Courmont
dca: set output buffer size correctly (fixes #6509, fixes #7459)
Some filters and outputs rely on the samples count (which was correct),
others on the bytes size (which was not), accounting for why decoding
failed only in some combinations.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=244a35b0301164f753a381f569181c6bd3419ad1
---
modules/audio_filter/converter/dtstofloat32.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/audio_filter/converter/dtstofloat32.c b/modules/audio_filter/converter/dtstofloat32.c
index 9d7b70d..c459a3a 100644
--- a/modules/audio_filter/converter/dtstofloat32.c
+++ b/modules/audio_filter/converter/dtstofloat32.c
@@ -314,6 +314,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_in_buf )
}
}
+ p_out_buf->i_buffer = p_in_buf->i_nb_samples * 4 * p_sys->i_nb_channels;
p_out_buf->i_nb_samples = p_in_buf->i_nb_samples;
p_out_buf->i_dts = p_in_buf->i_dts;
p_out_buf->i_pts = p_in_buf->i_pts;
More information about the vlc-commits
mailing list