Move av_log2 function and asociated table to the codec lib, remove 3 identical implem...