fix bug "Codec's input buffers are too small to accomodate buffer read from source"