fixed converting issue when decoding with s/w codec