[vlc-commits] Audio channel reordering: add assert before FPE

Jean-Baptiste Kempf git at videolan.org
Thu Oct 10 19:33:52 CEST 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Oct 10 19:33:24 2013 +0200| [5ba36bdd4e4f38352050fae863113029b464de76] | committer: Jean-Baptiste Kempf

Audio channel reordering: add assert before FPE

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5ba36bdd4e4f38352050fae863113029b464de76
---

 src/audio_output/common.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/audio_output/common.c b/src/audio_output/common.c
index b66f16c..d6d3776 100644
--- a/src/audio_output/common.c
+++ b/src/audio_output/common.c
@@ -322,6 +322,8 @@ do { \
         default:
         {
             unsigned size = aout_BitsPerSample( fourcc ) / 8;
+            assert( size != 0 );
+
             const size_t frames = bytes / (size * channels);
             unsigned char *buf = ptr;
 



More information about the vlc-commits mailing list