[vlc-commits] dca: set output buffer size correctly (fixes #6509, fixes #7459)
Rémi Denis-Courmont
git at videolan.org
Mon Oct 1 21:13:50 CEST 2012
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct 1 22:04:20 2012 +0300| [661652c85488e4fa3cde507d13b24b08c1e0ff75] | 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.
(cherry picked from commit 244a35b0301164f753a381f569181c6bd3419ad1)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=661652c85488e4fa3cde507d13b24b08c1e0ff75
---
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 3812a87..9f1d383 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