Make codec settings dynamic
Fixed tests and conflicts
Fixed buffer overflow
Merge branch 'mannol1-master'