Commit b2170247 authored by Benjamin Larsson's avatar Benjamin Larsson

Add cook channel count function, part of multichannel cook

Originally committed as revision 17992 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 0eec2875
......@@ -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
*
......
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