]> git.sesse.net Git - vlc/commitdiff
Audio channel reordering: add assert before FPE
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 10 Oct 2013 17:33:24 +0000 (19:33 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 10 Oct 2013 17:33:24 +0000 (19:33 +0200)
src/audio_output/common.c

index b66f16c1201289b5814b8050538cb26813106ca1..d6d3776a03d61fde0f5c34e75bad9b2150d9cca5 100644 (file)
@@ -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;