clean code to correct compression using LibAV library
issue #203