diff options
author | Benjamin Larsson <banan@ludd.ltu.se> | 2009-03-15 19:36:45 +0000 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2009-03-15 19:36:45 +0000 |
commit | b2170247069184acd068b39f24dd8ef5d4e4e7a4 (patch) | |
tree | 60583a3c9ec81c819e9288e1854a38e254946fc2 | |
parent | 0eec287596effa74e3d688e49762c7402a8969d6 (diff) | |
download | ffmpeg-b2170247069184acd068b39f24dd8ef5d4e4e7a4.tar.gz |
Add cook channel count function, part of multichannel cook
Originally committed as revision 17992 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/cook.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c index 1c1bf72c62..e476dede2d 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -1018,6 +1018,16 @@ static void dump_cook_context(COOKContext *q) } #endif +static av_cold int cook_count_channels(unsigned int mask){ + int i; + int channels = 0; + for(i = 0;i<32;i++){ + if(mask & (1<<i)) + ++channels; + } + return channels; +} + /** * Cook initialization * |