Commit 5ba36bdd authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Audio channel reordering: add assert before FPE

parent e11496c1
...@@ -322,6 +322,8 @@ do { \ ...@@ -322,6 +322,8 @@ do { \
default: default:
{ {
unsigned size = aout_BitsPerSample( fourcc ) / 8; unsigned size = aout_BitsPerSample( fourcc ) / 8;
assert( size != 0 );
const size_t frames = bytes / (size * channels); const size_t frames = bytes / (size * channels);
unsigned char *buf = ptr; unsigned char *buf = ptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment